Skip to content

Instantly share code, notes, and snippets.

@achiurizo
Created April 5, 2010 05:54
Show Gist options
  • Save achiurizo/356081 to your computer and use it in GitHub Desktop.
Save achiurizo/356081 to your computer and use it in GitHub Desktop.
project :test => :shoulda, :orm => :activerecord, :dev => true
generate :model, "post title:string body:text"
generate :controller, "posts get:index get:new post:new"
generate :migration, "AddEmailToUser email:string"
generate :fake, "foo bar"
require_dependencies 'nokogiri'
inject_into_file "app/models/post.rb","#Hello", :after => "end\n"
initializer :test, "# Example"
app :testapp do
generate :controller, "users get:index"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment