[Rails] account controller, can I use 2 layouts within the same controller?
My account controller is used for user registration.
And when the user signs-in, I have seperate controllers to add/update things and they all inherit from a base controller that set's the layout to a different layout and it ensures the person is signed in correctly.
Now I need to have a page where they edit their account, should I still use the account_controller which I use on the public view of the site, or should I create a different controller that inherits from that base controller for signed in users and just live with the fact that my controller is named differently than the actual model being acted upon?
-- 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