Skip to content

Instantly share code, notes, and snippets.

@bugant
Created July 19, 2013 14:58
Show Gist options
  • Save bugant/6039713 to your computer and use it in GitHub Desktop.
Save bugant/6039713 to your computer and use it in GitHub Desktop.
Template to generate a basic rails-api application. It includes RSpec2, ActiveModel::Serializers and uses strong parameters (ActionController::StrongParameters).
gem 'rails-api'
gem 'active_model_serializers'
gem_group :development, :test do
gem 'debugger'
gem 'rspec-rails'
gem 'shoulda-matchers'
gem 'factory_girl_rails'
end
initializer 'strong_parameters.rb', <<-CODE
ActionController::API.send :include, ActionController::StrongParameters
CODE
run 'rm -r test'
run 'bundle install'
generate 'rspec:install'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment