This file contains hidden or 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
rails destroy resource Dog #get rid of everything related to Dog | |
-------------------------------------------------------------------------- | |
rails new dog-app -T #-T to create without the test framework . Test with byebug | |
cd dog-app/ | |
# To create a rails api app with postgresql as the database: | |
rails new <my_app_name> --database=postgresql --api | |
# Navigate to your Gemfile and uncomment gem 'rack-cors' | |
# Make sure you add the gem 'active_model_serializers' to your Gemfile. |