views:

127

answers:

1

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
+1  A: 

I'm using authlogic and declarative_authorization in my Rails apps, so I thought I could meet the basic settings used in application templates, and/or search for such templates somewhere.

I didn't find repositories of templates, only found an automatic template generator. So I created a template according to my needs, and published in http://gist.github.com/b66c262ee2e8b27d416f.

nanda