Berger, Daniel
2006-Jan-12 16:04 UTC
[Rails] Re: RE: Re: Re: Auto refreshing a page based on select chang
> -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of > Kevin Olbrich > Sent: Wednesday, January 11, 2006 3:14 PM > To: rails@lists.rubyonrails.org > Subject: [Rails] Re: RE: Re: Re: Auto refreshing a page based > on select chang > > > Daniel Berger wrote: > > > <%> > select(:schedule, :start_date, dates, {:include_blank=>true}, > > {:onchange => url_for(:controller=>"schedule", > :action=>"new")} > > ) > > %> > > Why am I not getting a full URL there in the ''onchange'' portion? Or > > can''t I do > > it like that? > > The onchange is definitely not right. I''ll pull a working one off my > dev machine later tonight and post it for you. > > _KevinHeck, I''ll use AJAX if that''s easier, though I''m having trouble following that example as well. Thanks, Dan