Hi, I have installed the ferret gem (on WIN XP). My search and result view is working, but it comes back with empty results all the time. It seems like ferret is building the index (there is 3 binary files in the index directory). If I add the line: acts_as_ferret :fields => [''title'',''description'',''price'',''website_url''] to my advert model I get the following error: undefined method `acts_as_ferret'' for Advert:Class Please help, David -- Posted via http://www.ruby-forum.com/.
David Smit <davidsmit@gmail.com> writes:> Hi, > > I have installed the ferret gem (on WIN XP). My search and result view > is working, but it comes back with empty results all the time. It seems > like ferret is building the index (there is 3 binary files in the index > directory). >i am not sure, are you sure they are not some old files?> If I add the line: > acts_as_ferret :fields => [''title'',''description'',''price'',''website_url''] > > to my advert model I get the following error: > undefined method `acts_as_ferret'' for Advert:Classhave you installed acts_as_ferret plugin? HTH. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "War is Peace! Freedom is Slavery! Ignorance is Strength!" | -- Orwell, 1984, 1948 `----
David Smit wrote:> Hi, > > I have installed the ferret gem (on WIN XP). My search and result view > is working, but it comes back with empty results all the time. It seems > like ferret is building the index (there is 3 binary files in the index > directory). > > If I add the line: > acts_as_ferret :fields => [''title'',''description'',''price'',''website_url''] > > to my advert model I get the following error: > undefined method `acts_as_ferret'' for Advert:Class > > Please help, > > DavidYou''ve installed ferret but have you installed the acts_as_ferret plugin and restarted your server? -- Posted via http://www.ruby-forum.com/.