how do I find whether default JavaScript file working or not?? Can same one give me small code example for this ??
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
If you are using Ruby on Rails version 2, a quick way to find this out is to browse the source of your web page. The line where your javascript is, should end with a question mark and a number.
For instance, if you are using the default name
application.js, open your webpage source and check if it looks like this:The
?1311166541tells you that your javascript was found and it’s loaded by the page.If it’s still not working, the problem is inside your javascript file and it has nothing to do with Ruby on Rails.
If you are using Rails 3, there will not be a number after the filename, but just before the .js. Something like
/assets/application-447c72e0609e769e6d9601ff3e930fdc.js. The principle is the same.