Quy Doan wrote:
> sorry it's :
>        :with=>"'discount='+$('discount_code').value" .
> You missed single quote in discount_code  :)
> 
> On Sep 19, 10:46�am, Vikas Gholap <[email protected]>

Thanks,

but how can i pass multiple parameters through :with option in 
link_to_remote

for example

=link_to_remote "Apply", :update => "plan_discount", :url => { :action 
=> "discount_code"}, :with=>"'discount='+$('discount_code').value 
&'discount2='+$('discount_code2').value"

This is not working.

Where I'm doing wrong.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to