I’d like to notice that finally a really nice feature will be introduced in version 2.3 of Rails: the application template.

Basically it’ll be possible to have a pre-confugired Rails applications (in fact, some of them were built during last months, eg: baseapp) with, for example, some installed gems/plugins, resources already present, and so on.

The most interesting thing is that the application template can be expressed through an URI, so everyone can easily publish and share its own templates.

Example (from Patrik Naik blog):

rails blog -m ~/template.rb
# or
rails blog -m http://gist.github.com/31208.txt

# template file can be something like that
run "rm public/index.html"
generate(:scaffold, "person name:string")
route "map.root :controller => 'people'"

git :init
git :add => "."
git :commit => "-a -m 'Initial commit'"

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Spam protection by WP Captcha-Free