I have a User and a Rep model
devise_for :users, :controllers => {:registrations => 'user_registration'}
devise_for :reps
I ran
rails generate devise:views reps
The custom views show up in app/views/reps
But the rep paths are still using the built in devise views
Rendered ~/.rvm/gems/ruby-1.9.2-p290/gems/devise-1.4.9/app/views/devise/registrations/edit.html.erb
Instead of the generated reps views.
By simply putting the views there Devise won’t use them. You would need to point
Devise::RegistrationsControllerto the right controller which has these views, which you can do by calling this:This needs to have a new controller defined at
app/controllers/reps/registrations_controller.rb:You would then have the views in the right directory for this controller to use.