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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:29:19+00:00 2026-05-23T01:29:19+00:00

My team trying to trace a strange bug in a Rails (ver 2.3.8) application.

  • 0

My team trying to trace a strange bug in a Rails (ver 2.3.8) application. A certain view is rendering a search form containing a few <select> controls. These controls are rendered in a Haml (ver. 3.0.18) template and their content is populated from ActiveRecord objects like so (simplified):

%form#search
  = collection_select :product, :id, Product.all, :id, :name
  = collection_select :product, :vendor_id, Vendor.all, :id, :name
  ... a few more

Every now and then, at what seems to be both random and rare, the control renders with each <option> being either a random number (suspected to be the ruby’s #object_id for that entry) or values from a different select in the same form, e.g – product’s name select renders with vendor’s names and vice versa. We cannot reproduce this problem but have seen it happen a few times.

Is anyone aware of a possible Haml/Rails bug that could cause this, or has any thoughts as to how we could trace this error further, or obtain some insight into what’s going on? thanks.

  • 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-23T01:29:19+00:00Added an answer on May 23, 2026 at 1:29 am

    I have a similar problem but we are not using Haml. Instead we are using Spring MVC 3.0 with JSP’s. Not very often but users of our site get random values in the select tag. The list which populates this select tag have 7000+ records. I guess it is some thing related to size of the data and browsers fail to populate the exact value. In other words, if the actual value to be selected is 5000th position, the browser renders whatever it has in hand before reaching 5000th position. This might also be a issue with spring tags which are used for rendering a select.

    To over come this issue, a work around that i found (may be this is not the best approach) to use a java script to load the exact values.

    If you guys come to know exact issue with solution, Please me know as well. Thanks

    Amit 🙂

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

Sidebar

Related Questions

Our team trying to create a windows application(c#) to call a WCF service using
My team is trying to build an Android application for a tablet that will
I am trying to build an application to help our marketing team manage a
I'm relatively new to Mercurial and my team is trying it out right now
My team is currently trying to automate the deployment of our .Net and PHP
When trying to create a new team project with any of the default project
I am trying to setup a TFS Team Build and am new to MSBuild.
I'm trying to install the Subversion team provider on Eclipse 3.5, and it fails
I'm trying to install Team Foundation Server using 2 machines: Machine1 : OS: Windows
I'm trying to get my team to think about only asking the database to

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.