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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:25:54+00:00 2026-05-19T03:25:54+00:00

I am upgrading an old Rails 1 application to Rails 2, and I’m running

  • 0

I am upgrading an old Rails 1 application to Rails 2, and I’m running into a problem with the handling of check boxes. The old code has a check_box_tag call and corresponding hidden_field_tag call for each check box. While this worked before, after the upgrade all the checkboxes in the params hash come across as their default hidden value, regardless of whether they were checked. I’ve been reading about the check_box method, and how it has slowly changed from Rails 1 to 2 to 3 in terms of working with the corresponding hidden field.

Is there any documentation out there on how check box handling changed in Rails 2, or can someone explain why the Rails 1 approach no longer works?

Edit: After more research, I found this. It looks like in Rails 2.2 parameter extraction always gets the first occurrence of a given key (so the hidden field should go last), but in Rails 2.3 parameter extraction always get the last occurrence of a given key (so the hidden field should go first). And this apparently is poorly documented in the release notes and docs.

  • 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-19T03:25:55+00:00Added an answer on May 19, 2026 at 3:25 am

    If I remember right, you don’t need to have an hidden field with rails 2, you just use check_box_tag and it does everything for you.

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

Sidebar

Related Questions

Background: I am upgrading an old Rails 2 application to Rails 3. This application
I am upgrading an old application which was written for a specific hardware interface.
I'm upgrading an old VB6 application to VB.NET that uses DAO to connect to
I have inherited some really old VC6.0 code that I am upgrading to VS2008
We are upgrading our project from Delphi 2006 to Delphi 2010. Old code was:
I am just upgrading some old code written in Delphi 6 to Delphi XE2.
I'm upgrading an application from an old ejb2 setup to use ejb3's using the
My client has an old Access application written in Access 2003. It's fairly large
I'm working on upgrading an old Rails app (1.1.6) to Rails 3. Obviously, a
I'm upgrading an old C# code-base and would like to convert the regular properties

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.