Re: Devise Nested Resources

Errol Siegel
2010-08-28T01:17:02Z

I just happened to be looking for the same information.  I found it
here:

http://www.michaelharrison.ws/weblog/?p=349

To quote the relevant part:

The solution is to give devise_for an alternate path to use for user
authentication, e.g. accounts:

devise_for :users, :path => ''accounts''

resources :users do
    resources :someresources
end


It doesn’t matter what path you use, since devise is going to use its
own controller to handle authentication requests.
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.