- Make sure your ~/.railsrc is configured with the appropriate options. --database=postgresql --skip-spring --skip-test-unit --skip-bundle --skip-turbolinks
- gem install rails-api
- rails-api new YourServerName
- Configure CORS (cross-origin resource sharing) in config/application.rb
- rails g model and rails g serializer
- rails g controller and write the methods that render the correct JSON and handle error cases
- Configure the routes
- Migrate your database
- Configure the url property in your Backbone model / collection to point to the resource route e.g., http://myserver.com/items
grantmw / rails-api-backbone Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ckammerl/rails-api-backbone