MaM o_0 wrote:
I have solved this issue by myself, but I think it's a dirty way to go.
Please if someone knows a better way to do it, please let me know.
This is how I call JS from the controller
render :text => "JSfoo()",
and this is how I call it from RJS
page << 'JSfoo()'
Why doesn't the RJS method work in the controller (I tried it), and is
there a better way to call JS from the controller?
Posted via http://www.ruby-forum.com/.
How about this... in your controllerj
render :update do |page|