tj stankus

 
 

Rails App Template

I spent some time today creating a Rails application template. As well as performing some general file cleanup, it pulls in the following tools:

I added a prompt for pulling in jQuery and provide an option for specifying the jQuery version. I also provide a bare-bones application layout file and reset browser styles with YUI reset.css. Finally, the whole thing is added to a git repo and the initial commit is made.

The source can be found here.

This tool has been out for a while and I’m impressed with its power; I wish I would’ve done this sooner. Specifically, I’m impressed with the powerful gem command; the :env option allows you to restrict gems to a specific environment. Best of all are the interactive prompt commands: ask, yes?, and no?. Using these allowed me to customize the inclusion and version of jQuery for the generated app. Cool stuff.

Further Learning Resources