Skip to content

Instantly share code, notes, and snippets.

@Epictetus
Created August 19, 2011 03:45
Show Gist options
  • Save Epictetus/1155984 to your computer and use it in GitHub Desktop.
Save Epictetus/1155984 to your computer and use it in GitHub Desktop.
# rails blog -m https://gist.github.com/1155984.txt
# rails blog -m ~/template.rb
# rake rails:template LOCATION=~/template.rb
# template.rb
run "rm public/index.html"
generate(:scaffold, "person name:string")
route "map.root :controller => 'people'"
rake("db:migrate")
git :init
git :add => "."
git :commit => "-a -m 'Initial commit'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment