> What does the :with option do? Here is the code that I am referencing:
>
> <% func = remote_function( :update => ''exclude_1'',
:url => {:action =>
> ''set_exclude_airline_1'', :id => @user.id}, :with
=> "''id='' +
> escape(value)" ) -%>
:with: A JavaScript expression specifying the parameters for the
XMLHttpRequest. This defaults to value, which in the evaluated context
refers to the new field value. If you specify a string without a "=",
itll
be extended to mean the form key that the value should be assigned to. So
:with => "term" gives "term=value". If a "=" is
present, no extension will
happen.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---