Skip to content

Instantly share code, notes, and snippets.

@zh
Forked from nesquena/my_template.rb
Created January 18, 2012 08:52
Show Gist options
  • Select an option

  • Save zh/1632049 to your computer and use it in GitHub Desktop.

Select an option

Save zh/1632049 to your computer and use it in GitHub Desktop.
project :test => :rspec, :orm => :mongoid
generate :model, "account username:string password:string"
generate :model, "post title:string body:string"
generate :controller, "posts get:index get:new post:new"
generate :migration, "AddEmailToAccount email:string"
generate :controller, "accounts get:index"
git :init
git :add, "."
git :commit, "initial commit"
inject_into_file "models/post.rb","#Hello", :after => "end\n"
initializer :test, "# Example"
git :add, "."
git :commit, "second commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment