Create a basic admin controller, like this:

class Admin::BaseController < ApplicationController
    layout :admin
end

Then make all admin controllers inherit from it. And also create an
layouts/admin.html.erb file ;)

-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) |
http://codeshooter.wordpress.com/ (en)



On Fri, Jun 5, 2009 at 8:52 PM, elliottg<x...@simplecircle.net> wrote:
>
> I have an admin namespace in my app. I would like to have a layout
> that would work like app/layouts/application.html.erb, but instead off
> affecting the entire app it would only affect all the views inside of
> Admin::*
>
> How would this be done?
>
> Thanks,
> Elliott
> >
>

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

Reply via email to