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]>
wrote:
> Sijo Kg wrote:
> > Hi Vikas Gholap
>
> >    Either
>
> > "'discount='+$('discount_code').value"
> >    Or
>
> > "'discount='+$F('discount_code')"
>
> > Sijo
>
> Thanks Sijo,
>
> But I don't have problem related to this.
>
> My question is that how i access "discount" parameter value in
> controller.
>
> using discount_value = params[:discount] gives me nil.
>
> How can i access paramter value passed in ":with"
>
> Thanks again,
> Vikas
> --
> Posted viahttp://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