On Oct 9, 2012, at 9:38 AM, Bob Sleys wrote: > I'm trying to setup a name-one it wasn't working so I tried calling the > autocomplete directly from the web browser but I keep getting the following > error. > > NoMethodError in MachinesController#complete_select_model > > undefined method `limit' for #<Array:0x00000006c8d8d0> > > I've traced it down to the hobo_completions I've setup > > autocomplete :select_model do > hobo_completions :manufacturer_model, MachineModel.find(:all) > end
The problem is that find(:all) returns an array, not a scope. Try MachineModel.scoped instead. --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
