I’m developing a Rails 3 app on Ubuntu 11.04, and I get the following browser dialog box when I try to perform an ajax post request.
The server localhost:3000 at Application requires a username and password
All the other pages load fine. It just happens when an ajax call is performed. I’m using Mongrel for the rails development server.
Any ideas on how to solve this issue so the dialog box won’t appear?
It turns out the issue was caused by a security patch introduced in rails 3.0.4. (More info here)
All I needed to do was bundle update jquery-rails and then run rails generate jquery:install