[LRUG] Rails : Drying Up Views

Anthony Green Anthony.Green at bbc.co.uk
Tue Sep 11 09:44:26 PDT 2007


In this example by Err the blog

http://errtheblog.com/post/28

He shows you how to use yield to all the shared a side bar across
HomeController views

I'm looking for techniques to do things like share a side bar across all
#edit actions in all controllers but only edit actions.

view generation seems to dominated around controller names
ie

views/layouts/#{controller_name}.rthml
/helpers/#{controller_name}_helper.rb

Tony




On 11/9/07 17:15, "James Adam" <james.adam at gmail.com> wrote:

> Is this what you mean?
> 
> James




More information about the Chat mailing list