I need to pass an object to a ruby method, which handles an Ajax call.
I would appreciate if you could tell me a convenient way to do so.
url = “<%= url_for(:controller => ‘groups’, :action => ‘search’,
:canvas => false, :only_path => false ) %>”;
form = document.getElementById(‘search_group_form’);
submitForm( form , url,‘search_team_results’);
I am not sure if there is a way to pass an object in the url string
above. I tried the following:
url = "<%= url_for( …, :action => ‘search’, :myobject =>
but it didn’t work.
Thanks in advance!