greendog99 / greendog-rails-template

Rails 3 template with HTML5 Boilerplate in HAML and SASS, plus other goodies
76 stars 20 forks source link

rvm partial bug #4

Open afhammad opened 13 years ago

afhammad commented 13 years ago

the following line does not work.

rvm_list = 'rvm list'.gsub(Regexp.new("\e[.?.?.?m"), '')

/web/temp/partials/_rvm.rb:8:in apply': undefined method[]' for nil:NilClass (NoMethodError)

greendog99 commented 13 years ago

I've tried to reproduce your error but have not been able to. Try running the command from irb and see if it works:

$ irb
>> rvm_list = `rvm list`.gsub(Regexp.new("\e\\[.?.?.?m"), '')
=> "\nrvm rubies\n\n=> ruby-1.9.2-p290\e(B [ x86_64 ]\n\n"

Also, it's completely safe to remove this line from the _rvm.rb partial if you do not have export rvm_pretty_print_flag=1 in your .rvmrc file.