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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:21:20+00:00 2026-05-30T13:21:20+00:00

I am using the client side validations gem (v3.1.0) with Rails 3.1.1 and whenever

  • 0

I am using the client side validations gem (v3.1.0) with Rails 3.1.1 and whenever I tab out of a form field, in my development environment every error message is displayed twice. In my staging and production environments, they are only shown once. This is driving me nuts and I can’t figure out WHY.

A typical form field looks like this:

  <div class="label">
    <label for="user_first_name">First name</label>
  </div>
  <div class="field">
    <input class="text" data-validate="true" id="user_first_name" name="user[first_name]" size="30" type="text" />
  </div>

After a validation occurs:

<div class="label">
    <div class="field_with_errors"><div class="field_with_errors"><label for="user_first_name">First name</label></div></div>
</div>
<div class="field">
    <div class="field_with_errors"><div class="field_with_errors"><input class="text" data-validate="true" id="user_first_name" name="user[first_name]" size="30" type="text"><label for="user_first_name" class="message">can't be blank</label></div><label for="user_first_name" class="message">can't be blank</label></div>
</div>

I do not understand what is going on in development that is different from staging/production other than the asset pipeline getting served differently. Has anyone else encountered this? I have not been able to find anything on it in online.

  • 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-30T13:21:21+00:00Added an answer on May 30, 2026 at 1:21 pm

    Did you precompile the assets? In my case, that was the problem. Simply remove the public/assets folder and validations should display only once.

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

Sidebar

Related Questions

I have added the client side validations on a form using jQuery's validate() function
Client side form validation becomes easiest by using jQuery. I tried all validators and
I have a form that is using jQuery Validate plugin for client side validation,
I'm trying to have client-side validation errors show up inline, using the client_side_validations gem
We are investigating using ASP.Net validations for client side validating. Is it possible to
I'm using client-side, unobtrusive validation in MVC 3. I have a field called MinPrice
Im using jQuery validation plugin http://docs.jquery.com/Plugins/validation to do some client side validations. I have
I am using a client side validation and it is starting to get messy,
I'm using the jQuery.Validation plugin for client side validation, and among other things I
I want to do some client side validation using javascript in ASP.NET page. I

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.