Created
July 19, 2013 14:58
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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