Re: [Rails] JS data to rails view helper

2011-03-10 Thread radhames brito
On Wed, Mar 9, 2011 at 10:55 PM, Me wrote: > Ya I have seen that. How does that apply to what I am doing? > > > grab the input:select with jquery, is easy, the video shows a bit about dealing with selects, after that $.ajax{ type: 'POST', url: 'controller/action' data : { value: 'grab it from t

Re: [Rails] JS data to rails view helper

2011-03-09 Thread Jim Ruther Nill
On Thu, Mar 10, 2011 at 12:04 PM, Me wrote: > > > On Wednesday, March 9, 2011 9:57:02 PM UTC-6, jim wrote: > >> >> >> On Thu, Mar 10, 2011 at 11:39 AM, Me wrote: >> >>> Ok, is there another way to get this to work without going back to the >>> server to just get a value from the select? >>> >>>

Re: [Rails] JS data to rails view helper

2011-03-09 Thread Me
On Wednesday, March 9, 2011 9:57:02 PM UTC-6, jim wrote: > > > > On Thu, Mar 10, 2011 at 11:39 AM, Me wrote: > >> Ok, is there another way to get this to work without going back to the >> server to just get a value from the select? >> >> > please don't top post. > > what are you trying to achie

Re: [Rails] JS data to rails view helper

2011-03-09 Thread Me
On Wednesday, March 9, 2011 9:55:34 PM UTC-6, jim wrote: > > Not sure where to put this but here is the code again: > <%= select_tag :discount_code, options_for_select(@discount_ codes)%><%= add_exclusion_date_link('Add Existing', Select Value goes here ) %> > > On Thu, Mar 10, 2011 at 11:39

Re: [Rails] JS data to rails view helper

2011-03-09 Thread Jim Ruther Nill
On Thu, Mar 10, 2011 at 11:39 AM, Me wrote: > Ok, is there another way to get this to work without going back to the > server to just get a value from the select? > > please don't top post. what are you trying to achieve? give use some code snippets. > On Wednesday, March 9, 2011 9:20:20 PM UT

Re: [Rails] JS data to rails view helper

2011-03-09 Thread Jim Ruther Nill
On Thu, Mar 10, 2011 at 11:39 AM, Me wrote: > Ok, is there another way to get this to work without going back to the > server to just get a value from the select? > > On Wednesday, March 9, 2011 9:20:20 PM UTC-6, jim wrote: >> >> >> >> On Thu, Mar 10, 2011 at 9:43 AM, Me wrote: >> >>> I have a v

Re: [Rails] JS data to rails view helper

2011-03-09 Thread Me
Ok, is there another way to get this to work without going back to the server to just get a value from the select? On Wednesday, March 9, 2011 9:20:20 PM UTC-6, jim wrote: > > > > On Thu, Mar 10, 2011 at 9:43 AM, Me wrote: > >> I have a view helper like ryan bates complex forms task helper, rail

Re: [Rails] JS data to rails view helper

2011-03-09 Thread Jim Ruther Nill
On Thu, Mar 10, 2011 at 9:43 AM, Me wrote: > 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. > > if you're trying to use th

Re: [Rails] JS data to rails view helper

2011-03-09 Thread Me
Ya I have seen that. How does that apply to what I am doing? On Wednesday, March 9, 2011 8:42:22 PM UTC-6, radhames brito wrote: > > http://railscasts.com/episodes/88-dynamic-select-menus -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

Re: [Rails] JS data to rails view helper

2011-03-09 Thread radhames brito
http://railscasts.com/episodes/88-dynamic-select-menus -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk

[Rails] JS data to rails view helper

2011-03-09 Thread Me
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_e