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 7913053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:45:13+00:00 2026-06-03T13:45:13+00:00

I am running JRuby version 1.6.7 with Rails 3.2.3 and when I launch my

  • 0

I am running JRuby version 1.6.7 with Rails 3.2.3 and when I launch my rails server rails s I get the following error:

/config/routes.rb:8: syntax error, unexpected ':'

  match '/about', to: 'pages#about'

However, if I change to match '/about' :to => 'pages#about' I don’t get the error. Since this shorthand format is supported in the version of Rails in use, what is the problem and how do I resolve it?

  • 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-03T13:45:15+00:00Added an answer on June 3, 2026 at 1:45 pm

    The hash syntax comes from Ruby implementations, not Rails. JRuby can run in either 1.9 or 1.8 mode. It runs in 1.8 mode by default. You can read about configuring JRuby to run in 1.9 mode on the wiki.

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

Sidebar

Related Questions

I'm getting the following error when running warble under both jRuby 1.3 and 1.4.
I need to get the jruby version for logging & debugging purposes. I tried
We're running a small JRuby on Rails app under Tomcat 6.0.28 with a Spring-based
I've been working on getting our Rails 2.3.8 app running correctly under JRuby. Everything
We're running a small web application written JRuby on Rails running under Tomcat. We're
I have a simple Rails 3.1 CRUD app built using Oracle running on JRuby.
I was running a JRuby something.rb script and suddenly it throws this: Error: Your
I've a Rails 3 project based on JRuby, which is running excellent in development
I'm migrating a Rails application to JRuby running on TorqueBox. As a result I
I am new to JRuby, and I'm trying to get my test suite running

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.