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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:23:06+00:00 2026-06-10T02:23:06+00:00

This Ruby on Rails problem is a bit vexing, as the code works fine

  • 0

This Ruby on Rails problem is a bit vexing, as the code works fine locally but not when I push it onto my live server.

I’ve added a few int columns into a table using a migration and have a few checkboxes to determine whether items of a certain status are displayed on a certain page, eg:

status\page myitems   featureditems   saleitems
status1        X           x             x    
status2        x           x 

This works fine locally in a development environment, but when I push the code to my live server the “add new feature” page fails to load with the following error:

Started GET "/admin/statuses/new" for 86.159.115.236 at 2012-08-19 13:39:12 -0400
Processing by Admin::StatusesController#new as HTML
Rendered shared/_validationerror.html.erb (0.0ms)
Rendered admin/statuses/_form.html.erb (2.1ms)
Rendered admin/statuses/new.html.erb within layouts/application (2.2ms)
Completed 500 Internal Server Error in 4ms

ActionView::Template::Error (undefined method `show_my_items' for #<Status:0xb6c1690>):
20:       </tr>
21: 
22:       <tr>
23:         <td align="center"><%= f.check_box :show_my_items  %></td>
24:         <td align="center"><%= f.check_box :show_latest_items  %></td>
25:         <td align="center"><%= f.check_box :show_featured_items  %></td>
26:         <td align="center"><%= f.check_box :show_search_results  %></td>
app/views/admin/statuses/_form.html.erb:23:in `block in    
_app_views_admin_statuses__form_html_erb__566719799_79558060'
app/views/admin/statuses/_form.html.erb:1:in   
`_app_views_admin_statuses__form_html_erb__566719799_79558060'
app/views/admin/statuses/new.html.erb:7:in 
`_app_views_admin_statuses_new_html_erb__880262090_94647510'
app/controllers/admin/statuses_controller.rb:31:in `new'

In this case ‘show_my_items’ is one of the fields attached to a status, (represented by page1).

Additionally, on live I can edit a status using the checkbox (but it’s int datatype…), but on live, though I can view the edit page and submit without an error, it doesn’t actually update the field.

So the columns exist in the database, the code is the same code as I have on live, but the error only happens on the live server. Same version of Rails on both (3.1.0.rc8), ruby versions slightly different (local: 1.9.2p320, live: 1.9.3p194).

No idea what’s going on…

  • 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-10T02:23:07+00:00Added an answer on June 10, 2026 at 2:23 am

    Well the problem seems to be that Passenger did not start correctly. Either it takes longer than I thought or something else went wrong, but having restarted passenger again it worked fine.

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

Sidebar

Related Questions

I'm currently facing this problem with ruby on rails 3, devise and facebook oauth.
This is not a ruby/rails project deploy. I have the following situation and I
This is more a general question but my particular case involves a ruby/rails app
I'm having this annoying problem with Rails 3 (ruby 1.9.2) and nested resources. In
Curious as to how to approach this same problem using ruby / rails -
The application is written in Ruby on Rails but the problem I am facing
Not sure how to do this in Ruby/Rails only thing I could come up
So I'm working on one computer with some ruby/rails code and its working fine.
As popular as Ruby and Rails are, it seems like this problem would already
Referencing this post: ruby on rails average per day I'm getting the average per

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.