Sunday, July 11, 2010

[Rails] Re: Re: Rails 3 convert time of created_at before saving to MySQL

I did properly migrate to Rails 3. I no longer have
Rails::Initializer.run do |config|

Inside class Application < Rails::Application is the only place I have
config.time_zone = 'Bangkok'

I restarted a few times as well.

Sharkie


Jeffrey L. Taylor wrote:
> Did you restart your server? Did you properly migrate
> config/environment.rb
> to config/application.rb. I.e., change
>
> Rails::Initializer.run do |config|
> config.time_zone = 'Bangkok'
> end
>
> to:
>
> # config/application.rb
> module YourApplicationName
> class Application < Rails::Application
> config.time_zone = 'Bangkok'
> end
> end
>
> It sounds you haven't completed the migration completely.
>
> Jeffrey
>
>
> Quoting Sharkie Landshark <lists@ruby-forum.com>:

--
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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate