Closed ghost closed 11 years ago
Serve doesn't support the layout flag on render for views. Maybe you can just render different partials?
I want to compile two pages: index.htm (only content) and index.html (content in template). It need me for static ajax. Index.html need if javascript disabled. I don't know how it realized without "partial in layout".
Were you able to get this working?
When i write in view: <%= render :partial => 'content', :layout => '/layouts/_default_en' %> _content.html.erb is compiled, but /ayouts/_default_en.html.erb not. What do i do wrong?
Also I ask question there: http://stackoverflow.com/questions/8248779/how-to-create-1-view-for-2-layouts-in-erb Sorry for my english. =(