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

  • SEARCH
  • Home
  • 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 7090209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:01:06+00:00 2026-05-28T08:01:06+00:00

I have both ruby 1.8.7 and 1.9.2 installed on my system. I have a

  • 0

I have both ruby 1.8.7 and 1.9.2 installed on my system. I have a rails project that I initially built with ruby 1.9.2; but because I heare 1.8.7 is faster, I am trying to switch and finish it using ruby 1.8.7. However, whenever I run certain commands, right now its Rails g, I get the following output in my terminal:

    C:\Users\Edu\workspace\tasks>rails g
C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/depende
ncies.rb:234:in `load': C:/Users/Edu/workspace/tasks/config/initializers/session
_store.rb:3: syntax error, unexpected ':', expecting $end (SyntaxError)
...sion_store :cookie_store, key: '_tasks_session'
                              ^
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_su
pport/dependencies.rb:234:in `load'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_su
pport/dependencies.rb:223:in `load_dependency'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_su
pport/dependencies.rb:640:in `new_constants_in'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_su
pport/dependencies.rb:223:in `load_dependency'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_su
pport/dependencies.rb:234:in `load'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/engine.r
b:556
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/engine.r
b:555:in `each'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/engine.r
b:555
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/initiali
zable.rb:30:in `instance_exec'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/initiali
zable.rb:30:in `run'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/initiali
zable.rb:55:in `run_initializers'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/initiali
zable.rb:54:in `each'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/initiali
zable.rb:54:in `run_initializers'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/applicat
ion.rb:96:in `initialize!'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/railtie/
configurable.rb:30:in `send'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/railtie/
configurable.rb:30:in `method_missing'
        from C:/Users/Edu/workspace/tasks/config/environment.rb:5
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/applicat
ion.rb:83:in `require'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/applicat
ion.rb:83:in `require_environment!'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/commands
.rb:22
        from script/rails:6:in `require'
        from script/rails:6

From reading other problems, it has to do with 1.8 not understanding some of the syntax of rails 3.1. My question is, are there any resources for getting this resolved? I really like to added speed of 1.8.7 in my development and testing of apps. if not, are there any other suggestions to speed up my development?

  • 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-05-28T08:01:07+00:00Added an answer on May 28, 2026 at 8:01 am

    You (or someone else) has generated the application using Ruby 1.9. This means that it is using the new-to-1.9 variant of hashes (key: value) rather than the 1.8 version (:key => value).

    You will need to update this to be the latter inside config/initializers/session_store.rb if you want to use this application on 1.8.7.

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

Sidebar

Related Questions

I have both ruby and rails installed in: /usr/local/bin/ruby /usr/bin/ruby /usr/local/bin/ruby This is causing
I'm new on both this site and ruby on rails! I have a common
I have both Rails 2.3.4 and Rails 3.0.0.beta installed on my local machine. I
Hello I have both Rails2 and Rails3(beta 3) installed by Ruby Gems. Everything right
I am trying ti use carrierWave. I have installed imagemagic using homebrew and both
I have installed both awsome print & hirb irb plugins to Ruby 1.9.2 through
I'm trying to learn both Ruby and Rails and I'm looking at Michael Hartl's
Both Ruby and Python have the ability of calling the debugger from code (
I have both InDesign CS2 and CS3 installed. Both use files with .indd extension.
I have both SQL Server 2005 and Visual Studio 2008 installed and think it

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.