Skip to content

Instantly share code, notes, and snippets.

@MonikaMahanthappa
Created March 10, 2018 23:59
Show Gist options
  • Save MonikaMahanthappa/3467451a0da81a10dc237ba6e0901556 to your computer and use it in GitHub Desktop.
Save MonikaMahanthappa/3467451a0da81a10dc237ba6e0901556 to your computer and use it in GitHub Desktop.
Rails Girls Birds App
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