ruby on rails 3 - How to load views on an added Devise module for a custom registration controller -
my rails 3.0.3 app uses devise gem (1.1.5) authentication , before wasn't using :registerable module. have since added enable users sign up. implemented own registration controller extends devise::registrationscontroller. when visit url /users/sign_up. "missing template error" because rails doesn't find registration views under app/views. had generated devise views using rails generate devise_views
means registration views under app/views/devise/. when copy views app/views/ folder works. doesn't seem dry. there way of telling rails use views in app/views/devise?
thanks, kibet.
the easiest way add line in \config\application.rb
config.paths['app/views'] << "app/views/devise"
Comments
Post a Comment