linzilan linzilan - 1 year ago 48
Ruby Question

ruby on rails how to render a page without layout and other head field

respond_to do |format|
format.html { render "tabelle/show" }

I want to render the page ...with only the code in that page....not add
...layout and
field in ruby on rails.
I only want to show the result of code in the page tabelle/show.html.haml

Answer Source

You can do it like this:

format.html { render "tabelle/show", :layout => false  }