Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created December 1, 2012 18:02
Show Gist options
  • Save jhsu/4183623 to your computer and use it in GitHub Desktop.
Save jhsu/4183623 to your computer and use it in GitHub Desktop.
Rails template
# Generate home controller
File::unlink "public/index.html"
generate(:controller, "home index about contact")
route "root :to => 'home#index'"
# Install gem
## Access
gem "devise"
gem "cancan"
## Storage
gem "carrierwave"
gem "pg"
## View
gem "simple_form"
gem "kaminari"
## i18n
gem "rails-i18n"
# First Commit
git :init
git :add => "."
git :commit => '-m "init"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment