Hi,

Yes, the post on stackoverflow was indeed mine. The thing is that I had 
given up on getting the RVM commands to run from the template, but I 
have recently revisited the problem and finally figured it out.

It turns out that in order to hit the RVM shell from a ruby file you 
need to go through the RVM ruby API. You can find the API code in your 
.rvm/lib folder.

By digging around in the API, I managed to create a new Gemset for a 
particular RVM ruby version, start using the Gemset, install bunder and 
rails and finally run the command to create a new rails app using a 
template.

When I saw your post yesterday I was coincidentally in the process of 
finishing up a blog post on this very topic. It is now online at:

http://blog.madebydna.com/cooking-up-a-custom-rails-3-template

The code for my template is available on github. It might more than what 
you need, but as explained in the blog post it can be easily customized.

http://github.com/madebydna/rails-templater

Best,

Andrea
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to