I use date_select to generate a birthday field. I want to make this field optional. How can I make date_select have a blank option? -- 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 -~----------~----~----~----~------~----~------~--~---
On 21/12/06, Nanyang Zhan <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I use date_select to generate a birthday field. > I want to make this field optional. > How can I make date_select have a blank option?From the API docs: date_select("post", "written_on", :start_year => 1995, :use_month_numbers => true, :discard_day => true, :include_blank => true) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jamie Wilson wrote:> From the API docs: > > date_select("post", "written_on", :start_year => 1995, > :use_month_numbers => true, > :discard_day => true, > :include_blank => true)It works. thanks. -- 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 -~----------~----~----~----~------~----~------~--~---
Jamie Wilson wrote:> On 21/12/06, Nanyang Zhan <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> I use date_select to generate a birthday field. >> I want to make this field optional. >> How can I make date_select have a blank option? > > From the API docs: > > date_select("post", "written_on", :start_year => 1995, > :use_month_numbers => true, > :discard_day => true, > :include_blank => true)I use this too, but now when I only select a day, it writes it to the database as the 1st of januari of the year (the day I specified). This is not good, as it fucks up the system. Any way to solve this? -- 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 -~----------~----~----~----~------~----~------~--~---
Dax Huiberts wrote:> I use this too, but now when I only select a day, it writes it to the > database as the 1st of januari of the year (the day I specified). This > is not good, as it fucks up the system. Any way to solve this?Can I ask you please to be careful of your language on a public list ? A. -- 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 -~----------~----~----~----~------~----~------~--~---
Sorry, but if DHH can proclaim "FUCK YOU" to the world in a Rails conference keynote address, I hardly think that we need police the casual use of the word on the list. Is there a "no swearing" rule for the list somewhere? b Alan Francis wrote:> Dax Huiberts wrote: >> I use this too, but now when I only select a day, it writes it to the >> database as the 1st of januari of the year (the day I specified). This >> is not good, as it fucks up the system. Any way to solve this? > > Can I ask you please to be careful of your language on a public list ? > > A. >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It is about courtesy and civility. -Larry On 2/15/07, Ben Munat <bmunat-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Sorry, but if DHH can proclaim "FUCK YOU" to the world in a Rails > conference keynote address, I hardly think that we need police the > casual use of the word on the list. Is there a "no swearing" rule for > the list somewhere? > > b > > Alan Francis wrote: > > Dax Huiberts wrote: > >> I use this too, but now when I only select a day, it writes it to the > >> database as the 1st of januari of the year (the day I specified). This > >> is not good, as it fucks up the system. Any way to solve this? > > > > Can I ask you please to be careful of your language on a public list ? > > > > A. > > > > > >-- Best Regards, -Larry "Work, work, work...there is no satisfactory alternative." --- E.Taft Benson --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---