flex icon indicating copy to clipboard operation
flex copied to clipboard

Undefined method 'each' for string when using FlexSearch.

Open therealjasonkenney opened this issue 11 years ago • 1 comments

This error suggests flex does not support ruby 1.9, is this true?

I'm using Rails 4 and Ruby 2.0

(Ruby 1.8 allows each on a string, where 1.9 you must use each_line).

therealjasonkenney avatar Feb 23 '14 16:02 therealjasonkenney

Flex doesn't use each on any string, only on array and hashes, at least not intentionally. I have personally used it at least on a few dozen of servers with ruby 1.9.

The error suggests me that some string may get passed in place of an array/hash in your code.

Please, could you post a full backtrace (and eventually the code and variables that you are passing)? Thanks.

ddnexus avatar Feb 24 '14 00:02 ddnexus