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?
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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs