linzilan linzilan - 4 months ago 13
Ruby Question

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

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


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

Answer

You can do it like this:

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