Rails-generator is a project mainly written in Ruby, it's free.
Common routines for creating a Handlino-style rails project