search for: add_subquestion

Displaying 1 result from an estimated 1 matches for "add_subquestion".

2010 Jan 13
2
[Ajax on Rails]How to pass an object via param
I''m trying to pass an object as a parameter on a link_to_remote. What I do is pretty simple: link_to_remote ''Insert subquestion'', :url => {:action => ''add_subquestion'', :question => @question}, :update => '''', :method => :get But, obviously, what I get is a string which has the address of the object. Can I "translate" this string back to the object? Is there a better way to pass an object as a param? -- You receive...