Created
March 10, 2018 23:59
-
-
Save MonikaMahanthappa/3467451a0da81a10dc237ba6e0901556 to your computer and use it in GitHub Desktop.
Rails Girls Birds App
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
rails new wildlife | |
git add . | |
git commit -m "Initialize new project" | |
rbenv local 2.4.1 | |
git add . | |
git commit -m "Add ruby version" | |
rails server | |
rails generate scaffold bird name:string description:text picture:string | |
rails db:migrate | |
git add . | |
git commit -m "scaffold bird" | |
rails db:seed | |
git add . | |
git commit -m "seed birds" | |
git add . | |
git commit -m "style navigation bar and birds list" | |
gem 'carrierwave' | |
bundle install | |
rails generate uploader Picture | |
mount_uploader :picture, PictureUploader | |
rails g migration AddRegionToBirds region:references |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment