Brettski
2006-May-21 07:28 UTC
[Rails] how do I bypass using the standard layout for a file
Hi, i''m trying dyamically add a bit of code into a page by updating a div. this works great but it puts the page in with the standard layout around it duplicating it. Is there someway just to bypass using any layout with a rhtml file? -- Posted via http://www.ruby-forum.com/.
Guest
2006-May-21 10:15 UTC
[Rails] Re: how do I bypass using the standard layout for a file
To not use any layout: def some_method render(:layout => false) end To use a layout you specify: def some_method render(:layout => "layouts/yourlayout") end -- Posted via http://www.ruby-forum.com/.