Hi Ruby Community! I use the gem CalendarDateSelect with RoR 2.2.2. Everything works fine when I use the default date-format. In environment.rb I made the gem-dependency-entry: config.gem "calendar_date_select" But do somebody knows where I have to set the entry for the other date formats like :finnish, :iso_date etc.? I searched inside the internet and tried a lot of possibilities (like config.gem "calendar_date_select", :finnish), but nothing works:-( Thanks ahead for every possible solution! Regs Hermann -- 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 -~----------~----~----~----~------~----~------~--~---
Put this at the very end of environment.rb (*after* the ''end'' of the Rails::Initializer.run method): CalendarDateSelect.format = :finnish On Mar 16, 9:18 am, Herman Müller <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi Ruby Community! > > I use the gem CalendarDateSelect with RoR 2.2.2. > > Everything works fine when I use the default date-format. > > In environment.rb I made the gem-dependency-entry: > > config.gem "calendar_date_select" > > But do somebody knows where I have to set the entry for the other date > formats like :finnish, :iso_date etc.? > > I searched inside the internet and tried a lot of possibilities (like > config.gem "calendar_date_select", :finnish), but nothing works:-( > > Thanks ahead for every possible solution! > > Regs > > Hermann > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris wrote:> Put this at the very end of environment.rb (*after* the ''end'' of the > Rails::Initializer.run method): > > CalendarDateSelect.format = :finnish > > On Mar 16, 9:18�am, Herman M�ller <rails-mailing-l...@andreas-s.net>Thank you very much Chris, it works fine. But my next Problem ist, how to save the date format. For example: 03.12.2012 will be saved as 2012-03-12, 31.3.2009 will not saved because there is no month with numer 31 --> the problem is by that rails mistakes betwenn month and day. Do you know a solution? Thanks ahead! Regs Herman -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Now I remember I had the same problem when trying to use British- format dates (dd/mm/yyyy). Try this as a starting point: http://groups.google.com/group/calendar_date_select/browse_thread/thread/86d0451c515c2074/9f93a4a5976119fa That discussion is getting old now, so it might be worth looking through the calendar_date_select group to see if there have been changes to Rails and/or the plugin that you need to know about. It''s still working for me with Rails 2.2, though. On Mar 17, 10:01 am, Herman Müller <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Chris wrote: > > Put this at the very end of environment.rb (*after* the ''end'' of the > > Rails::Initializer.run method): > > > CalendarDateSelect.format = :finnish > > > On Mar 16, 9:18 am, Herman M ller <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > Thank you very much Chris, > > it works fine. > > But my next Problem ist, how to save the date format. > > For example: 03.12.2012 will be saved as 2012-03-12, 31.3.2009 will not > saved because there is no month with numer 31 --> the problem is by that > rails mistakes betwenn month and day. > > Do you know a solution? > > Thanks ahead! > > Regs Herman > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
And more info here: http://blog.nominet.org.uk/tech/2007/06/14/date-and-time-formating-issues-in-ruby-on-rails/ On Mar 17, 10:01 am, Herman Müller <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Chris wrote: > > Put this at the very end of environment.rb (*after* the ''end'' of the > > Rails::Initializer.run method): > > > CalendarDateSelect.format = :finnish > > > On Mar 16, 9:18 am, Herman M ller <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > Thank you very much Chris, > > it works fine. > > But my next Problem ist, how to save the date format. > > For example: 03.12.2012 will be saved as 2012-03-12, 31.3.2009 will not > saved because there is no month with numer 31 --> the problem is by that > rails mistakes betwenn month and day. > > Do you know a solution? > > Thanks ahead! > > Regs Herman > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---