Skip to content

Instantly share code, notes, and snippets.

@sbc
Created May 7, 2011 13:41
Show Gist options
  • Select an option

  • Save sbc/960506 to your computer and use it in GitHub Desktop.

Select an option

Save sbc/960506 to your computer and use it in GitHub Desktop.
Rails Tutorial Notes

Rails Tutorial Notes

Project Setup

  1. $ rails new sample_app -T # -T ~ no Test::Unit

  2. #Update Gemfile (rspec, webrat)

  3. $ bundle install

  4. $ rails g rspec:install

  5. git init; git add .; git commit -m ‘Initial commit’

  6. #Create repo on github

  7. $ git remote add origin [email protected]:/sample_app.git

  8. $ git push origin master

  9. $ heroku create

  10. $ git push heroku master

Static Pages

  1. $ git co -b static-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment