开发者

Ruby on rails templates for apps (rails 2.3 version)

开发者_如何学运维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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜