Rails 2.3+ template for creating new projects

I’ve been working with ruby on rails for the last few months and it’s been lots of ups and downs to me. It’s a learning curve and you just have to stand tall through the first frustrating weeks cursing the magic behind that you don’t understand. At least for a hard core java, spring, hibernate developer like myself, spoiled with great IDE support, which ruby lacks (It’s improving, with RubyMine, which I’m using,  a “clone” of IntelliJ IDEA). But then it becomes better, a lot better!


Kind of what AppFuse was supposed to provide the java maven community (what’s happening with this? I like the initiative!), the template runner of rails (version 2.3+) is supposed to help you set up your project with useful libraries, as authentication, test frameworks etc. No need to talk to much about it, I’ve created one that you can see for yourself, http://github.com/oma/rails-templates !

It’s tailored to my own need, and I don’t even know what I want, so you’d probably want to clone or download it yourself, to customize. It has a list of gems, as Shoulda, Mocha, factory-girl, authentication, openid, mail and more. Play with it! Run

rails mynewapp -m http://github.com/oma/rails-templates/raw/master/oma_rails_template.rb

check that rake test works, then navigate to mynewapp and run script/server. in http://localhost:3000 you’ll see a nice welcome page with login and logout functionality.


God, I love this Ryan guy creating the screencasts at http://railscasts.com/. He targets the intermediate rails developer, but this is excellent stuff for noobs as well. He taught me rails template runner in episode #148

More templates at http://github.com/jeremymcanally/rails-templates


About Ole Morten Amundsen

Developer, programmer, entrepreneur. Java, .Net, ruby, rails, agile, lean. Opinionated enthusiast!
This entry was posted in agile, aliado, rails, ruby and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s