Background:
I use \"rails g scaffold hotel name stars:integer\" to start fast (and insert into the database some records), and write a Backbone client
When your javascript application runs on a different domain, port or protocol than your server, strange things will happen. This is called Same Origin Policy. Just load the javascript from your rails server and everything will be fine.