When I fill-out the "sign up" page in my project developed with ROR and devise, and submit, I get the error above. Can anyone help with a solution?
I am a noob just started learning ROR with the free YT course "Learn Ruby on Rails - Full Course", the objective is to create a "friends" address book, and then allow people to sign up and create their own address book. By following the instructions I have installed ROR on my Windows 10 machine and created the address book using scaffold. Then styled the views / webpages using bootstrap. It is all working on my local machine as shown in the video.
Now I'm at the part of installing devise for User Management. I've installed that gem according to the YT instructor, and checked it against the "getting started" guide for devise. Added some of the new views to the nav bar (i.e. Sign Up, Sign In, Sign Out, Edit Profile) according to the new routes created.
Now when the instructor uses the "sign up" page on the YT video it shows a "successful..." notice. When I try, the Sign Up page displays correctly, but when hitting submit I get the error:
"NoMethodError in Devise::RegistrationsController#create undefined method `user_url' for #Devise::RegistrationsController:0x0000000000cbc0 "
There are then loads of lines of stuff (should I paste that?) and then this red box with:
Exception Causes ActionView::MissingTemplate: Missing template devise/registrations/create, devise/create, application/create with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: * "C:/railsfriends/friends/app/views" * "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/devise-4.8.1/app/views" * "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/actiontext-7.0.0/app/views" * "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/actionmailbox-7.0.0/app/views" Did you mean? devise/registrations/edit devise/registrations/new devise/mailer/confirmation_instructions devise/mailer/reset_password_instructions devise/passwords/edit devise/mailer/email_changed
I note that although this YT guide is just over a year old, some of the installation instructions were already out of date and I had to search to install ROR properly. So, maybe something with his devise instructions is out of date now?
I looked at the other questions already here regarding this subject and they were not relevant that I could see. This one is over 7 years old and seems to be a problem with encryption (I don't have that error come up), and this one doesn't seem to solve my issue either. I even found this answer on reddit which isn't relevant to my issue, but I note that the person answering says the user should never use Scaffold again!
In my searching I noticed an option to roll back the db migration. Is that something that could work in case I somehow didn't follow the instructions to a "T" and the solution to this issue can't be found?
Thanks for your help.