Hi- I have used helpers like text_field_tag when creating non-model forms and I would like to build a form that searches by date, also non- model. Is there such thing as datetime_tag, or something similiar? Thanks for you suggestions! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 14 Jan 2008, at 15:20, pete wrote:> > Hi- > > I have used helpers like text_field_tag when creating non-model forms > and I would like to build a form that searches by date, also non- > model. > > Is there such thing as datetime_tag, or something similiar? >select_date etc... ? Fred> Thanks for you suggestions! > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
And you can use this in ad-hoc type forms that are not related to any particular model? Thanks. On Jan 14, 8:23 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 14 Jan 2008, at 15:20, pete wrote: > > > > > Hi- > > > I have used helpers like text_field_tag when creating non-model forms > > and I would like to build a form that searches by date, also non- > > model. > > > Is there such thing as datetime_tag, or something similiar? > > select_date etc... ? > > Fred > > > Thanks for you suggestions!--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 14 Jan 2008, at 15:28, pete wrote:> > And you can use this in ad-hoc type forms that are not related to any > particular model? >Yes. date_select & friends are the ones that assume the instance variable convention Fred> Thanks. > > On Jan 14, 8:23 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> On 14 Jan 2008, at 15:20, pete wrote: >> >> >> >>> Hi- >> >>> I have used helpers like text_field_tag when creating non-model >>> forms >>> and I would like to build a form that searches by date, also non- >>> model. >> >>> Is there such thing as datetime_tag, or something similiar? >> >> select_date etc... ? >> >> Fred >> >>> Thanks for you suggestions! > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---