search for: discount_cod

Displaying 3 results from an estimated 3 matches for "discount_cod".

Did you mean: discount_code
2009 Sep 17
2
Can i use "form_remote_tag" inside the "form_tag"?
...nt %input{:type=>''radio'', :name=>''tariff_plan_id'', :value=>"monthly"} %input{:type=>''radio'', :name=>''tariff_plan_id'', :value=>"yearly"} - form_remote_tag(:update => "result_discount_code", :url => { :action => :discount_code }, :position => "top" ) do =text_field ''discount_code'' =submit_tag ''Apply Discount'' #result_discount_code =submit_tag ''Subscribe'' Can I use form_remote_tag inside...
2011 May 09
0
rails 2.3.5 nested attributes problema
The params sent to the controller are not nesting correctly as seen below. <% fields_for "discount_code[new_discount][] ", task do |form| %> Tour Type ID: <%= form.text_field :tour_type_id %> Price: <%= form.text_field :price_number %> Days: <%= form.text_field :days %> <% end %> I would expect this to come into the controller looking like pa...
2011 Mar 10
10
JS data to rails view helper
I have a view helper like ryan bates complex forms task helper, rails 2.2.2. Anyway is there a way to send the value selected in a select menu to the helper? I am trying to do stuff without going back to the server. <%= select_tag :discout_code, options_for_select(@discount_codes)%><%= add_exclusion_date_link(''Add Existing'', JS ) %> -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gma...