Devise custom registrations controller error?

In your routes you have to use devise_scope if you are overriding devise default actions.

Up vote 0 down vote favorite 1 share g+ share fb share tw.

When I try to create a custom devise controller: class RegistrationsController {:registrations => "registrations"} root :to => "registrations#new" Using Rails 3.0.4 ruby-on-rails ruby ruby-on-rails-3 devise link|improve this question edited Mar 23 '11 at 11:17basszero9,05842139 asked Mar 23 '11 at 10:06Janjiss1.

In your routes you have to use devise_scope if you are overriding devise default actions. Devise_for :users, :controllers => {:registrations => "registrations"} devise_scope :user do root :to => "registrations#new" end For a similar issue please see groups.google.com/group/plataformatec-de... Also here are the docs on changing default com/plataformatec/devise/wiki/How-To:-Change-the-default-sign_in-and-sign_out-routes.

Thanks, I will check out that – Janjiss Mar 25 '11 at 7:19.

I used the following code in my project successfully: app/controllers/users/registrations_controller. Rb class Users::RegistrationsController { :registrations => "users/registrations" }.

I guess this is the case when you are using users namespace. – dombesz Mar 23 '11 at 11:15 I had same problem with namespaces. – Janjiss Mar 25 '11 at 7:14.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions