you can do

layout :choose_layout

def choose_layout
  ...
end

On Sat, Dec 5, 2009 at 8:06 AM, Levi Rosol <[email protected]> wrote:

> For my app i want all of the views in my app to use a new layout that I
> have defined, except for the site_index view.
>
> So I went to the base_controller and added
> layout 'no_header'
>
> Then when i went to find out what controller site_index was using, I
> realized that it would be base_controller.
>
> What are my options for getting the desired functional I'm after? I really
> don't want to mod every controller in CE to use my layout.
>
> --
> Levi Rosol
> Twitter: @LeviRosol
>
>  --
> You received this message because you are subscribed to the Google Groups
> "CommunityEngine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<communityengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/communityengine?hl=en.
>



-- 
"We do not believe in ourselves until someone reveals that deep inside us is
valuable, worth listening to, worthy of our trust, sacred to our touch." -
E. E. Cummings

--

You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.


Reply via email to