search for: time_zone_nam

Displaying 2 results from an estimated 2 matches for "time_zone_nam".

Did you mean: time_zone_name
2006 Jan 30
1
Introduction & time_zone_select with mapped TimeZone question
...field using a composed_of class with mapped utc_offset and name fields... In my form I have: <%= time_zone_select(''user'',''time_zone'') %> In my user-class I have: composed_of :time_zone, :class_name => ''TimeZone'', :mapping => [%w(time_zone_name name) %w(time_zone_utc_offset utc_offset)] And I get this error: undefined local variable or method `utc_offset'' for User:Class I am using the stable version of Rails and User is part of the user_engine, but that should make no difference as I did overload the user-class (and other fie...
2011 Mar 18
0
Convert Rails TimeZone name to MySQL timezone name?
...). The problem is that the zone names in rails differ from the names in MySQL. In rails we have a name like "Eastern Time (US & Canada)". MySQL has the equivalent as the following: "US/Eastern" Obviously we could write some name mapping thingy or munge the names in MySQL time_zone_name file. I''m just wondering if anyone has already been down this path and has a canned solution. Thanks in advance. -- 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 t...