Forum: Ruby on Rails how do I bypass using the standard layout for a file

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Brettski (Guest)
on 2006-05-21 11:27

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?
Guest (Guest)
on 2006-05-21 14:15
To not use any layout:

def some_method
  render(:layout => false)

To use a layout you specify:

def some_method
 render(:layout => "layouts/yourlayout")
This topic is locked and can not be replied to.