Rendering layouts/partials includes HTML tags in text after transitioning from Rails 3.0.x to 3.1 -
Rendering layouts/partials includes HTML tags in text after transitioning from Rails 3.0.x to 3.1 -
i'm trying transition application 3.0.7 3.1. i've moved around assets app/assets directory , thought have configured correctly.
my problem layout file won't correctly render partials , other layout files. if have within layout <%= yield %>
correctly renders view files.
but if seek render layout file within layouts/omega/application.html.erb like:
<%= render "layouts/omega/head" %> <%= yield %>
then dumps html onto page of elements , html tags included in text:
<div id="top-pane"> <div class="center-content">..... "some text correctly displayed view file called through yield"
if seek render file, in home/index.html.erb: <p> home/index </p> <%= render 'omega/test' %>
then output be: "this home/index <p> test layout </p>
" again, text home/index outputted correctly, rendered partial still includes html elements. what's changed in 3.1 that's making happen?
(by way, i'm working within rails engine, why have namespaced omega)
ruby-on-rails-3 ruby-on-rails-3.1
Comments
Post a Comment