Devise rendering default views from gem instead of newly generated ones

15 views
Skip to first unread message

David Williams

unread,
Jan 14, 2015, 6:38:00 PM1/14/15
to rubyonra...@googlegroups.com
I generated views/controllers for two user models upon installing
devise. For whatever reason, the views that are included inside of the
gem itself are being rendered instead of the ones that I added.

/views/users/registrations/new.html.erb
/views/bizusers/registrations/new.html.erb

Current route configuration

devise_for :biz_users, path_names: { sign_in: 'login', sign_out:
'logout', sign_up: 'register' }
devise_for :users, path_names: { sign_in: 'login', sign_out: 'logout',
sign_up: 'register' }
devise_for :admins, path_names: { sign_in: 'login', sign_out:
'logout', sign_up: 'register' }

I solved this problem before in a different way, but it was hard to
manage due to the separation of concerns that needed to be in place for
the users. Can help you fix this issue please?

--
Posted via http://www.ruby-forum.com/.

David Williams

unread,
Jan 14, 2015, 9:37:23 PM1/14/15
to rubyonra...@googlegroups.com
I had to turn on this function through the config file devise.rb.
[SOLVED]
Reply all
Reply to author
Forward
0 new messages