Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8962007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:01:43+00:00 2026-06-15T16:01:43+00:00

Working on upgrading an application from Ruby 1.8.6/Rails 2.3.5 to Ruby 1.8.7/Rails3.0.11. In application.rb,

  • 0

Working on upgrading an application from Ruby 1.8.6/Rails 2.3.5 to Ruby 1.8.7/Rails3.0.11.

In application.rb, config statements have been moved (from environment.rb) into the:

module AppName
class Application < Rails::Application
...
end
end

block, including the statement:

config.time_zone = 'Eastern Time (US & Canada)'

In the old environment.rb file, there was also some code for initialization of some constants, which i’ve moved into application.rb. I’ve tried it after the module/class block (as it was before) and within it, but the following statement:

Time.zone.parse(external_config_date)

is producing this error:

config/application.rb:49: undefined method `parse’ for nil:NilClass (NoMethodError)

I’m a little baffled by this (as often happens with Rails date/times :-/); mostly it looks like Time.zone is an acceptable way to access the default time zone, but i’ve also seen it said that ‘zone’ is an instance method of Time instead of a class method.

Any insight on this (or thoughts on how to troubleshoot further) much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:01:44+00:00Added an answer on June 15, 2026 at 4:01 pm

    It looks like moving the extra config code from environment.rb into application.rb was my mistake here. ‘Time.zone.parse’ appears to be a Rails add-on, and it hadn’t been enabled in application.rb yet. Moving the config code back to the bottom of environment.rb, after the line

    AppName::Application.initialize!
    

    got it working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given: A rails 2.3.x application currently being upgraded to rails 3. Upgrading ruby from
I am currently upgrading our application from Webwork to Struts2. Today I run into
I have a asp.net application which is working from last 2-3 years, it has
I am running Ruby on Rails 3.2.2 from 3.1.0. I have the issue undefined
I'm working on upgrading an application from MVC3 to MVC4 and noticed something that
I am upgrading an application from cakephp 1.3 to 2.0 and running into some
I'm upgrading my application from Delphi 2007 to Delphi XE. I have my personal
I've been working on upgrading an application, and I've come upon two brick walls,
I'm working on upgrading an older application from .Net 2 to .Net 4. The
I'm working on upgrading from Rails 2.3.11 to 3.0.10, and am having trouble converting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.