search for: _site_header

Displaying 1 result from an estimated 1 matches for "_site_header".

Did you mean: site_header
2006 Jun 24
3
Staying DRY -- can views share partials?
Let''s say I have a "main" controller/view and a "sub" controller/view. If I have defined a partial in "main" for the site header (_site_header.rhtml) can I share it with "sub" or does "sub" have to duplicate it, use a symbolic link to the file, or convert the cool partial into an ugly helper? It would be nice to have a shared placed for partials. Similar to app/helper/application.rb. I know I could use a helper, b...