Displaying 1 result from an estimated 1 matches for "jioasd".
Did you mean:
ioas
2007 Aug 31
2
dynamic layouts from DB
...e 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
:)
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Ra...