Skip to content

Instantly share code, notes, and snippets.

View kbberker's full-sized avatar

Kenan Berker kbberker

  • Octopus MoneyCoach
  • London, UK
View GitHub Profile
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.