This project is archived and is in readonly mode.
rails:template Rake task does not expand file paths
-
Pratik
- Title changed from [PATCH] rails:template Rake task does not expand file paths to rails:template Rake task does not expand file paths
-
Pratik
I tried rake rails:template LOCATION=~/template.rb and it works for me. Are you still facing this problem ?
-
Stephen Celis
Yep. I can reproduce it on rails/master on 1.8.6 and 1.8.7, OS X, RedHat, and Ubuntu. It all goes back to File.open:
>> File.open("~/real_file.rb") Errno::ENOENT: No such file or directory - ~/real_file.rb >> File.open(File.expand_path("~/real_file.rb")) => #<File:/Users/stephen/real_file.rb>OptionParser runs expand_path, but the Rake task does not.
