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

render, ruby, ruby-on-rails

Solution

You can do it like this:

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

Problem

``` 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

Original source

Related problems