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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:59:15+00:00 2026-05-22T21:59:15+00:00

In my development environment, which is windows 7, Ruby1.9.2p180, everything works fine. However, in

  • 0

In my development environment, which is windows 7, Ruby1.9.2p180, everything works fine.

However, in production environment, which is Ubuntu 10.04, Ree 1.8.7 using rvm, following error gets produced.
(I am using passenger-apache-module to run the application.)

/home/randomapp/public_html/app/models/article.rb:14: syntax error, unexpected ':', expecting kEND field :user_id, type: Hash ^ 
/home/randomapp/public_html/app/models/article.rb:15: syntax error, unexpected ':', expecting kEND field :username, type: String ^ 
/home/randomapp/public_html/app/models/article.rb:16: syntax error, unexpected ':', expecting kEND field :title, type: String ^ 
/home/randomapp/public_html/app/models/article.rb:17: syntax error, unexpected ':', expecting kEND field :content, type: String ^ 
/home/randomapp/public_html/app/models/article.rb:18: syntax error, unexpected ':', expecting kEND field :display_content, type: String ^ 

Where those lines have below codes

  field :user_id, type: Hash
  field :username, type: String
  field :title, type: String
  field :content, type: String
  field :display_content, type: String

Assuming above lines work fine in development, do you think it may be a problem with syntax parser???
How can I resolve this problem?

  • 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-22T21:59:16+00:00Added an answer on May 22, 2026 at 9:59 pm

    You are using the 1.9.2 hash syntax. If you want to run on both 1.9.2 and 1.8.7 then try this:

    field :user_id, :type => Hash
    field :username, :type => String
    field :title, :type => String
    field :content, :type => String
    field :display_content, :type => String
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My development environment: Ubuntu 9 Ruby 1.9.1/1.8.7 (rvm) Rails 2.3.5 Mysql 5.0 Apache Passenger
I'm using the Windows Launcher development environment for Google App Engine. I have downloaded
I'm trying to set up my local development environment, to which i'm using the
If I am using Windows Vista x86 Enterprise as development environment, and I have
I'm looking for a good development environment in which to work on flex or
The code has a runtime dependency which is not available in our development environment
I just reinstalled Windows 7 and I am trying to get my development environment
The situation: I need to convert our current development environment from Windows XP 32-bit to
I'm looking to set up my development environment at home for writing Windows applications
The Url for my development environment is: http://localhost/mysite/blah... I am using jQuery & getJSON

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.