You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
open-uri.rb:32:in `initialize': can't convert Hash into String (TypeError)
The same error occurs using File.open:
File.open(filename, :encoding=>"utf-8") do |file|
Presumably this only works in Ruby 1.9. I'm building Ruby 1.9 now to check. In the latest Pickaxe book this is the method described for setting the encoding to utf-8 when using File.open:
The new code in question is:
the error reported is:
The same error occurs using File.open:
Presumably this only works in Ruby 1.9. I'm building Ruby 1.9 now to check. In the latest Pickaxe book this is the method described for setting the encoding to utf-8 when using File.open:
File.open(filename, 'r:utf-8')
This method also doesn't work in 1.8.x
Also see comments on this commit:
http://github.com/fauna/has_many_polymorphs/commit/bacaeb095f5e8cf7427679b2755680ab24f8503e
The text was updated successfully, but these errors were encountered: