Skip to content

Instantly share code, notes, and snippets.

@emileswarts
Created May 20, 2012 07:42
Show Gist options
  • Save emileswarts/2757227 to your computer and use it in GitHub Desktop.
Save emileswarts/2757227 to your computer and use it in GitHub Desktop.
Rails stuff
Show installed gems
bundle show
Generate scaffold
bundle exec rake db:migratls generate scaffold User name:string email:string
Install gems defined in Gemfile. Skip production group
bundle install --without production
Install db tables and fields
bundle exec rake db:migrate
Manually run rspec test on static_pages
bundle exec rspec spec/requests/static_pages_spec.rb
Get latest Ruby enVironment Manager
rvm get head && rvm reload
Rerun
bundle install --binstubs=./bundler_stubs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment