Skip to content

Instantly share code, notes, and snippets.

@markfeedly
Last active December 23, 2015 15:49
Show Gist options
  • Save markfeedly/6658356 to your computer and use it in GitHub Desktop.
Save markfeedly/6658356 to your computer and use it in GitHub Desktop.
random install notes
Some useful install commands
----------------------------
rails new appname
bundle # if need be
edit database.yml
rake db:create
.....
rails generate rspec:install
git checkout -b static-pages #work in a branch
rails generate controller StaticPages home help --no-test-framework #avoid default rspec tests
# OR rails generate controller static_pages ...
# sets up
rails generate integration_test static_pages
126 bundle install
127 bundle show devise
128 rails g devise:install
129 rails g devise:views
130 rails generate devise User
133 rake db:migrate
Heroku
------
git push
git push heroku
heroku run rake db:migrate
Some possibly useful resources
------------------------------
https://github.com/plataformatec/devise/wiki/How-To:-Test-with-Cucumber devise cucumber
http://blog.sensible.io/2013/08/17/strong-parameters-by-example.html
nice overview of rails 4, illustrated by console use
http://railscasts.com/episodes/400-what-s-new-in-rails-4?autoplay=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment