You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, so this problem popped up when I upgraded my app from 3.0.x to 3.1.0.rc4.
I have erb content stored in the database that needs to be rendered in the correct context to use view helpers. I use the following helper for that.
application_helper.rb:
# There very well might be a better/more proper way to do this,# but it was working in 3.0.x and I'm noobish so I used it.defrender_erb(text)controller.render_to_string(:inline=>text)end
Now any time I call render_erb within a view, content_for no longer works properly. Views with no call to render_erb work as they should.
Ok, so this problem popped up when I upgraded my app from 3.0.x to 3.1.0.rc4.
I have erb content stored in the database that needs to be rendered in the correct context to use view helpers. I use the following helper for that.
application_helper.rb:
Now any time I call render_erb within a view, content_for no longer works properly. Views with no call to render_erb work as they should.
index.html.haml
application.html.haml
The text was updated successfully, but these errors were encountered: