Skip to content

Instantly share code, notes, and snippets.

@MonikaMahanthappa
Last active August 29, 2015 14:27
Show Gist options
  • Save MonikaMahanthappa/a7260a09f30389b20609 to your computer and use it in GitHub Desktop.
Save MonikaMahanthappa/a7260a09f30389b20609 to your computer and use it in GitHub Desktop.
Rails app
mkdir workshop
rails new demo
cd demo
dir
rails server
git init .
git add .
git commit -m "rails demo app scaffold"
rails generate controller Say hello goodbye
git add .
git commit -m "add say controller"
git add .
git commit -m "add say hello from rails"
git add .
git commit -m "use link_to instead of href"
git add .
git commit -m "fetch time from controller"
git add .
git commit -m "make time human readable"
git add .
git commit -m "fetch time from controller"
git add .
git commit -m "add goodbye message"
git add .
git commit -m "link hello and goodbye pages"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment