Render: layout with rss

I run render: layout is ignored in the response_to block. I am trying to create an rss feed. If I change the format to xml and delete

  xml.rss :version => "2.0" do

from the builder, everything works fine, and I get an xml file. However, adding that again and putting this in my controller:

respond_to do |format|
    format.html { render :layout => 'application' }
    format.rss  { render :layout => false } 
end

I get the missing template error:

Missing template organizations/home/show, application/show with {:handlers=>[:erg,
:builder, :coffee], :formats=>[:rss], :locale=>[:en, :en]}.

Rendering the html version of the page works just fine (also works if you say: layout false, and it will work correctly and not display the layout)

Thoughts?

+3
source share

All Articles