Here is my code:

%body{ :class => "controller_#{controller.controller_name}
#{defined?(@page_cssclass) ? @page_cssclass : ''}" }

I am using a custom page_css class set in the controller action method here
instead of an action name, but I would use an action name instead these days

On Tue, Jun 28, 2011 at 8:34 AM, Chris Braddock <[email protected]>wrote:

> Cool, I'll check it out - thanks again.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/e5K-RSa0LvUJ.
>
> 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/rubyonrails-talk?hl=en.
>

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

Reply via email to