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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:51:47+00:00 2026-05-27T09:51:47+00:00

I had an issue where the following jquery script was failing in Rails 3.1

  • 0

I had an issue where the following jquery script was failing in Rails 3.1 due to it not finding the element.

jquery

member_submit_button = $("#member_submit");

haml

= form_for @member do |f|
...
    f.submit "Update details", :class => "member_submit_button bluebutton"

In Rails 3.0 this works fine, and I tracked it down to Rails 3.1 not generating the id attribute. In rails 3.0 a tag id = “member_submit”.

This of course is easily fixed by adding the :id => “member_submit” parameter to the f.submit call. But I wanted to know what the reason was for this change as I have not seen this documented anywhere.

  • 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-27T09:51:48+00:00Added an answer on May 27, 2026 at 9:51 am

    I upgraded from Rails 3.0 to 3.1 and noticed one of my specs failing due to the same missing ID attribute.
    A bit of googling revealed that this is an expected behaviour for Rails 3.1, as specified in the respective Release Notes (see sect. “5.3 – Action View”):

    The submit form helper does not generate an id “object_name_id” anymore.

    Even if my message doesn’t answer your question entirely, as I can’t tell you why the Rails team decided to make this change, at least you can be sure that that’s not a Rails defect, but rather a change in that form helper. 😉

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

Sidebar

Related Questions

I've had an ongoing issue with the following exception when calling SubmitChanges() on a
I am having trouble with the following SQL statement. I have had this issue
I had an issue with my search not return the results I expect. I
I've consistently had an issue with parsing XML with PHP and not really found
The following issue just crept up on me. The steps mentioned below had worked
I had an issue with mocking Apache Http client. The following attempt to create
Yesterday I had problems with some jQuery script. I did some research and realized
I developed an HTML page that uses jQuery and Ajax. I had the following
This is probably intended behaviour or atleast not a jQuery / js issue but
I had an issue with my game that allowed people to easily fake their

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.