Friday, August 27, 2010

[Rails] Re: Devise Nested Resources

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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate