在rails工程(mysql)的model中添加:
```redis_search_index(:title_field => :title)```
数据库中有title字段。
报错:
Now indexing search to Redis...
rake aborted! You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.each
/home/zhao/.rvm/gems/ruby-1.9.2-p180/gems/redis-search-0.7.0/lib/redis/search/tasks.rb:12:in `block (2 levels) in ' ......