On Feb 22, 2012, at 11:19 AM, Roger Patrick wrote: > Walter Davis wrote in post #1048250: >> On Feb 22, 2012, at 10:43 AM, Roger Patrick wrote: >> >>> end >>> >>> any ideas of what the problem might be? >>> >> >> Didn't you have a search method that you wrote earlier? That may be >> overriding the one in the Ransack gem. Ransack returns an Arel >> collection, not an array. >> >> Walter > > I still have a method in the model but I have removed the old search > from the index.html.erb. So I can't see that being the problem. >
Try removing or renaming the search method in the model. I am guessing that that is clobbering the search method that Ransack is injecting into your model by default. Walter > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.