AJAX call fails on production

I am using simple out of the box AJAX helpers in Rails 2.0, it works locally but fails on the production. Any ideas on why this might happen? TIA.