start and install backbone. add gem backbone-on-rails to the gem file and run rails generate backbone:install --javascript in the command line