Is there any site or repository to download and/or share templates for Rails applications?
Example:
# 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'"
And do that:
rails myapp -m ~/template.rb
... or that:
rails myapp
cd myapp
rake rails:template LOCATION=~/template.rb