Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
project :test => :shoulda, :orm => :activerecord
generate :model, "account username:string password:string"
generate :model, "post title:string body:text"
generate :controller, "posts get:index get:new post:new"
generate :migration, "AddEmailToAccount email:string"
require_dependencies 'nokogiri'
git :init
git :add, "."
git :commit, "initial commit"
inject_into_file "app/models/post.rb","#Hello", :after => "end\n"
rake "ar:create ar:migrate"
initializer :test, "# Example"
app :testapp do
generate :controller, "users get:index"
end
git :add, "."
git :commit, "second commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.