I've been trying to use Acts_as_Ferret, but all I can get are no method
errors. For example, if I try in a rails console
Item.find_id_by_contents("whatever")
it returns "NoMethodError: undefined method `find_id_by_contents' for
#<Class:0x4943140>". I do have acts_as_ferret in my model rb file, and
the ferret gem installed.
I'm a newbie to rails. Is there a way I can check that I have aaf
installed correctly? Doing "ruby script/plugin install
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret"
as most tutorials say didn't seem to do anything or produce anything in
my vendor/plugins folder, so I downloaded a zip file from the github
site and extracted it to vendor/plugins/acts_as_ferret.
Also I find it confusing what is the "current, correct way" to install
and use aaf---is it now as an acts_as_ferret gem? And also has
find_id_by_contents now been replaced by find_with_ferret (which also
didn't work for me), or is it vice versa?
Please help, thanks!
Nova
on 2009-09-10 23:38
on 2010-01-04 20:44
you can only use the aaf to search for your rails applications. you have to run the plugin installation command while staying in the application dir you want to install it. Nova Pon wrote: > I've been trying to use Acts_as_Ferret, but all I can get are no method > errors. For example, if I try in a rails console > Item.find_id_by_contents("whatever") > it returns "NoMethodError: undefined method `find_id_by_contents' for > #<Class:0x4943140>". I do have acts_as_ferret in my model rb file, and > the ferret gem installed. > > I'm a newbie to rails. Is there a way I can check that I have aaf > installed correctly? Doing "ruby script/plugin install > svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret" > as most tutorials say didn't seem to do anything or produce anything in > my vendor/plugins folder, so I downloaded a zip file from the github > site and extracted it to vendor/plugins/acts_as_ferret. > > Also I find it confusing what is the "current, correct way" to install > and use aaf---is it now as an acts_as_ferret gem? And also has > find_id_by_contents now been replaced by find_with_ferret (which also > didn't work for me), or is it vice versa? > > Please help, thanks! > Nova
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.