search for: discount_codes

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

Did you mean: discount_code
2009 Sep 17
2
Can i use "form_remote_tag" inside the "form_tag"?
Hi all, How can i use form_remote_tag inside the form_tag helper . My application has following view subscribe.html.haml - form_tag :action => :subscribe do /other form element %input{:type=>''radio'', :name=>''tariff_plan_id'', :value=>"monthly"} %input{:type=>''radio'',
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
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.gmane...