1 July 2010

Rails application templates

Rails application templates allow me to automate the setup of each new Rails application, so I don’t have to repeat all the steps required to get an application running the way I want it.

Application templates use Thor, which like rake, ant, make and Capistrano, is a domain-specific language for automating scripting tasks.

On top of the standard Thor commands, Rails application templates also provide additional methods.

Using the apply method, several templates can be used inside a single template, making it easy to mix and match different templates for a particular implementations. Files can be loaded remotely, allowing them to be maintained on Github.

I have recently created a template and uploaded it to github.

d. sofer