This project is archived and is in readonly mode.

#5926 ✓committed
Xavier Shay

[BUG] [PATCH] Allow https URIs to be supplied for rails templates

Reported by Xavier Shay | November 7th, 2010 @ 06:49 AM | in 3.0.5

This fails:

$ rails new testrails -O -T -J -m https://github.com/xaviershay/sandbox/raw/master/rails/template.rb

The template [/private/tmp/https:/github.com/xaviershay/sandbox/raw/master/rails/template.rb] could not be loaded. Error: Could not find "/private/tmp/https:/github.com/xaviershay/sandbox/raw/master/rails/template.rb" in any of your source paths. Your current source paths are: 
/Users/xavier/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.1/lib/rails/generators/rails/app/templates

I have attached a fix with test, just needed to change the regex. I also performed the following test to confirm it worked (after temporarily adding 'i18n' gem to the Gemfile):

bundle exec ruby bin/rails new /tmp/bogus -m https://github.com/xaviershay/sandbox/raw/master/rails/template.rb

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages