so I have been looking for this answer and the devise docs kind of have an answer to customizing sign in and sign out but its not quite what I was looking for and I have tried it only to fail. Basically, I would like to incorporate the sign up form fields for a new user in my app on the home page or root_path.
I tried copying and pasting, which didnt work cause the resources are needed, I tried changing the routes to the route path root :to => “devise/registrations#new” and that didnt work, so then I looked up the customization of sign in and out and changed the scope to get “/”, => “devise/registrations#new” which also didn’t work.
Is there an easier way to do this? Or am I just missing something along the way?
The following should work:
Make sure that you have “/” matched to something, though, and obviously run
rake routes.EDIT: You can also run
rails g devise:viewswhich will give you all of the devise views in yourviewsfolder. Then in your home page, you canrender 'devise/reg_form'(or whatever the registration view is called).