Ok getting closer

Now I getting the following error

undefined method `manufacturer_model_contains' for 
#<ActiveRecord::Relation:0x00000006c13350>


Do I need to add a method to my model to handle it?  If so what would it 
look like.  IE is it doing to search for the query string? 

Bob

On Tuesday, October 9, 2012 1:41:46 PM UTC-4, Matt jones wrote:
>
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/Z0zNPda8j8kJ.
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.

Reply via email to