Hey all, I do a: <%= datetime_select ''user'', ''registered_after'' %> but then when I try to do @dateregister params[:user][:datetime_select] it''s nil. I know it has to do something with multi-parameter assignment but I don''t know much than that. Basically I would like to put the value of the selected date from my datetim_select in a @date var object. Any idea how to do that? thanx in advance Pat --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I think it would be: @dateregister = params[:user][:registered_after] c. Patrick Aljord wrote:> Hey all, > I do a: > <%= datetime_select ''user'', ''registered_after'' %> > > but then when I try to do @dateregister > params[:user][:datetime_select] it''s nil. I know it has to do > something with multi-parameter assignment but I don''t know much than > that. Basically I would like to put the value of the selected date > from my datetim_select in a @date var object. > > Any idea how to do that? > > thanx in advance > > Pat-- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 10/26/06, Cayce Balara <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I think it would be: > > @dateregister = params[:user][:registered_after] >sorry that was a typo, this is what I do @dateregister params[:user][:registered_after] but I get nil. any idea why? --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Patrick Aljord wrote:> On 10/26/06, Cayce Balara <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> I think it would be: >> >> @dateregister = params[:user][:registered_after] >> > sorry that was a typo, this is what I do @dateregister > params[:user][:registered_after] but I get nil. any idea why?I do not know whether this is good solusion params[:user][''postme(1i)''] like so to take individual componets of the date select -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---