Javascript blues

You shouldn't need to change any of the default settings to get this to work.

What do you get if you just type http://localhost:3000/javascripts/user_login.js into your browser address bar? Does it display/download the file okay, or do you get an error?

Chris

Also, please go pick up the FireBug extension for Firefox (you are using Firefox, right?): https://addons.mozilla.org/firefox/1843/

This will let you know if there’s a compilation / running error with your JS file.

Jason

Is the file in #{RAILS_ROOT}/public/javascripts ?

What version of Rails / Ruby are you using?

Jason

No, that's not normal. Don't suppose you've put some funny custom routes in your routes.rb file?

To figure out whether this problem is specific to this app, or whether it's a general problem with your system, try creating a new empty Rails app, dump a javascript file in public/javascripts, and see if your browser can load it.

Chris