I'm using devise for user auth, but I have nice mockups for the signup, login, etc. pages.
I've already done the rails generate devise:views User
command and have all of the views in the views folder, however, when I replaced the registration/new.html.erb with my own new.html.erb, nothing changes nor looks different. It's as if I had done anything.
Anyone know what I'm doing wrong or at least how to successfully customize devise views
P.S. Is it important to note that I changed the route of devise/registration#new to /signup?
Your route signup
or devise/registrations#new
will render the view
views/devise/registrations/new.html.erb
. It sounds like you made
changes to views/user/registrations/new.html.erb
, which would explain
why you dont see the changes made since its not being rendered.
You will either need to create a user/registrations_controller.rb
that
extends from Devise::RegistrationsController
and point your /signup
route to user/registrations#new
, or you can just make your changes
directly to views/devise/registrations/new.html.erb
Same idea applies to your login (devise/sessions
) pages.
Hope this helps.