Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Undefined method 'each' for string when using FlexSearch. #20

Open
therealjasonkenney opened this issue Feb 23, 2014 · 1 comment
Open

Comments

@therealjasonkenney
Copy link

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).

@ddnexus
Copy link
Owner

ddnexus commented Feb 24, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants