0W5E8fPq1EOm4yE
@0W5E8fPq1EOm4yE (Nishio)

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

ProtoSpaceトップページから新規登録画面に遷移する方法

解決したいこと

Ruby on railsでProtoSpaceを制作しているのですがトップページから新規登録画面に遷移したいです。

発生している問題・エラー

![スクリーンショット 2020-11-19 22.15.26.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/832099/6ca32c6b-c323-39c4-cedf-759bddd6e666.png)

または、問題・エラーが起きている画像をここにドラッグアンドドロップ。

該当するソースコード

ルートパス
              Prefix Verb   URI Pattern                                                                              Controller#Action
                                 root GET    /                                                                                        prototypes#index
                                  new GET    /new(.:format)                                                                           registrations#create {:to=>"registrations#create"}
                                 edit GET    /edit(.:format)                                                                          registrations#create {:to=>"registrations#create"}
                                      GET    /                                                                                        registrations#create {:to=>"registrations#create"}
                                      PATCH  /                                                                                        registrations#create {:to=>"registrations#create"}
                                      PUT    /                                                                                        registrations#create {:to=>"registrations#create"}
                                      DELETE /                                                                                        registrations#create {:to=>"registrations#create"}
                                      POST   /                                                                                        registrations#create {:to=>"registrations#create"}
        rails_postmark_inbound_emails POST   /rails/action_mailbox/postmark/inbound_emails(.:format)                                  action_mailbox/ingresses/postmark/inbound_emails#create
           rails_relay_inbound_emails POST   /rails/action_mailbox/relay/inbound_emails(.:format)                                     action_mailbox/ingresses/relay/inbound_emails#create
        rails_sendgrid_inbound_emails POST   /rails/action_mailbox/sendgrid/inbound_emails(.:format)                                  action_mailbox/ingresses/sendgrid/inbound_emails#create
  rails_mandrill_inbound_health_check GET    /rails/action_mailbox/mandrill/inbound_emails(.:format)                                  action_mailbox/ingresses/mandrill/inbound_emails#health_check
        rails_mandrill_inbound_emails POST   /rails/action_mailbox/mandrill/inbound_emails(.:format)                                  action_mailbox/ingresses/mandrill/inbound_emails#create
         rails_mailgun_inbound_emails POST   /rails/action_mailbox/mailgun/inbound_emails/mime(.:format)                              action_mailbox/ingresses/mailgun/inbound_emails#create
       rails_conductor_inbound_emails GET    /rails/conductor/action_mailbox/inbound_emails(.:format)                                 rails/conductor/action_mailbox/inbound_emails#index
                                      POST   /rails/conductor/action_mailbox/inbound_emails(.:format)                                 rails/conductor/action_mailbox/inbound_emails#create
    new_rails_conductor_inbound_email GET    /rails/conductor/action_mailbox/inbound_emails/new(.:format)                             rails/conductor/action_mailbox/inbound_emails#new
   edit_rails_conductor_inbound_email GET    /rails/conductor/action_mailbox/inbound_emails/:id/edit(.:format)                        rails/conductor/action_mailbox/inbound_emails#edit
        rails_conductor_inbound_email GET    /rails/conductor/action_mailbox/inbound_emails/:id(.:format)                             rails/conductor/action_mailbox/inbound_emails#show
                                      PATCH  /rails/conductor/action_mailbox/inbound_emails/:id(.:format)                             rails/conductor/action_mailbox/inbound_emails#update
                                      PUT    /rails/conductor/action_mailbox/inbound_emails/:id(.:format)                             rails/conductor/action_mailbox/inbound_emails#update
                                      DELETE /rails/conductor/action_mailbox/inbound_emails/:id(.:format)                             rails/conductor/action_mailbox/inbound_emails#destroy
rails_conductor_inbound_email_reroute POST   /rails/conductor/action_mailbox/:inbound_email_id/reroute(.:format)                      rails/conductor/action_mailbox/reroutes#create
                   rails_service_blob GET    /rails/active_storage/blobs/:signed_id/*filename(.:format)                               active_storage/blobs#show
            rails_blob_representation GET    /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show
                   rails_disk_service GET    /rails/active_storage/disk/:encoded_key/*filename(.:format)                              active_storage/disk#show
            update_rails_disk_service PUT    /rails/active_storage/disk/:encoded_token(.:format)                                      active_storage/disk#update
                 rails_direct_uploads POST   /rails/active_storage/direct_uploads(.:format)                                           active_storage/direct_uploads#create


ターミナル
Started GET "/" for ::1 at 2020-11-19 21:58:29 +0900
Processing by PrototypesController#index as HTML
  Rendering prototypes/index.html.erb within layouts/application
  Rendered prototypes/index.html.erb within layouts/application (Duration: 0.0ms | Allocations: 4)
[Webpacker] Everything's up-to-date. Nothing to do
Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.0ms | Allocations: 6884)

自分で試したこと

routes.rbにて新規登録画面のURLを定義した。

0

No Answers yet.

Your answer might help someone💌