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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -