search for: show_menu

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

Did you mean: show_mem
2006 Mar 31
3
Layout Question .. (Sitemesh related)
...ilar to OpenSymphony''s Sitemesh project. I have done a lot of development with Sitemesh, but am fairly new to Rails. I am wondering if there is a way for a layout in rails to find out value of a variable from a page it is decorating? In sitemesh you would be able to do <meta name="show_menu" content="true"> on some page being decorated and then in the layout page, you can access the value of show_menu using page.getProperty(..) and can show or hide the menu. Is there a way to do something like the above in Rails? For example a template t1.rhtml could be: <div>...