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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:34:52+00:00 2026-06-05T21:34:52+00:00

This problem is caused by my acknowledge of English and jQuery or maybe something

  • 0

This problem is caused by my acknowledge of English and jQuery or maybe something else.
I was using tutorial for jQuery – http://blog.bernatfarrero.com/jquery-and-rails-3-mini-tutorial/ .

In my application.erb.html:

<%= javascript_include_tag :defaults, "rails.validations", "rails.validations.custom" %>
<%=  javascript_include_tag  "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"%>
<%=javascript_include_tag  "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"%>

I think I didn’t included some library because my page in view.

But my page looks like:

    0 Comments
    Say something!

EDITED

My generator didn’t created js files,so I created file rails.validations.custom.js and added code from GitHub:

   ClientSideValidations.validators.local['email'] = function(element, options) {
    // Your validator code goes in here
      if (!/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i.test(element.val())) {
    // When the value fails to pass validation you need to return the error message.
    // It can be derived from validator.message
    return options.message;
      }
    }
  • 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-05T21:34:53+00:00Added an answer on June 5, 2026 at 9:34 pm

    The comments thread for the question is getting long, so I’m going to create an answer.

    We have established by looking at the firebug console that two of your JavaScript files are not where your application expects them to be:

    /assets/defaults.js
    /assets/rails.validations.custom.js
    

    What you need to do is either move those two files to the /assets directory, or modify the file path to point to the location where those two files actually reside.

    I’m not a rails guy, but here is my guess about how you might do that:

    <%= javascript_include_tag :defaults, "/js/rails.validations", "/js/rails.validations.custom" %>
    

    I think this would look for the files in /assets/js directory, but obviously you would need to modify the path to point at the actual location of you files. I’m sure a rails developer will chime in and tell me if I’ve got the wrong end of the stick!

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

Sidebar

Related Questions

I'm basicly going on this site: http://blog.velir.com/index.php/2010/11/17/android-snapping-horizontal-scroll/ But i'm having this problem: Caused by:
EDIT: Just to make things clear, this problem was caused by a typo in
I'm running Mac OSX Snow Leopard, this problem is caused by a recent train
Edit : The bug that caused this problem has been fixed. The @version tag
I have this problem, see the trace stack: E/AndroidRuntime(2410): Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML
I know that this problem is caused by the sleep or wait calling on
I don't think this problem is caused from my ListActivity subclass. I think it
I just discovered this problem today, and I had no idea what caused this
Okay, so I've seen this question about this problem being caused by multiple linkings
SOLVED: There was a stupid mistake which caused this problem. In header.php i wrote

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.