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

mewosic picture mewosic · Apr 11, 2013 · Viewed 22.4k times · Source
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

fmendez picture fmendez · Apr 11, 2013

You can do it like this:

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