Hello,
I’m trying to get layouts from the database and use it as layout, but
its not working as excepted, it always try to find something from the
layout director
views/layouts/ ___ .rhtml
Even the below code render it as HTML and not ruby code
@layout = Layout.find(:first)
@test = “test”
render :text = @layout.html
Result:
joiasd jioasd ijoaidsoj ajiod <%= @test %>
I hope someone can point me in some direction, and thanks for your help