rails generator not working #5

Closed
idrinkpabst opened this Issue Nov 5, 2012 · 0 comments

Comments

Projects
None yet
2 participants

The template file has the line
21: <%= OpenSSL::PKey::RSA.generate(2048).to_s.collect { |line| " #{line}" }.join('') %>

error when generating the config file:
(erb):21:in template': undefined methodcollect' for #String:0x0000000402bc38 (NoMethodError)

Strings don't have a 'collect' method on them in Ruby 1.9

Quick fix was
21: OpenSSL::PKey::RSA.generate(2048).to_s.each_line.collect { |line| " #{line}" }.join('')

@reidmorrison reidmorrison added the Bug Fix label Aug 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment