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 can specify a layout that applies only to specific actions in a
controller:

layout “whatever”, :only => [ :some_action ]

Check out the guide on layouts for more options:
http://guides.rubyonrails.org/layouts_and_rendering.html

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs