Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to modify the default gemfile template on debian, and it doesn't seem to be anywhere to be found. Is this found somewhere on the system called "Gemfile" or is it located in another directory. I've used find, and grep to search the system, and even similar looking files don't seem to effect a newly generated rails apps. Is there any way to do what I'm wanting?

share|improve this question
    
Actually....I just answered my own question. I found a file located at /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.7/lib/rails/generators/rai‌​ls/app/templates The confusing part was that it doesn't include everything in the output "Gemfile" from the newly generated rails app, but editing it does include my new requirements. –  Lethjakman Aug 5 '12 at 22:30
    
Note that you can answer your own question in a few hours from now! –  slhck Aug 5 '12 at 22:50
    
@slhck Thank you for telling me! –  Lethjakman Aug 6 '12 at 19:10

1 Answer 1

up vote 1 down vote accepted

Alright, so I found the answer on my own. the file located at

/usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.7/lib/rails/generators/rails/app/templates/Gemfile

Is actually the file you need to modify. It does not have everything else contained in your output file, only some of it. If you append anything to it, it will appear in your Gemfile though.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.