Archive for October, 2008

Friday, October 31st, 2008

undefined method `find_by_contents’ ,acts_as_ferret

Problem
When trying to use the acts_as_ferret plugin in a search page by using the find_by_contents method then the following error appears:
undefined method `find_by_contents’
Solution
It seems that the API of the plugin has changed, and the
find_by_contents
method should be replaced with the:
find_with_ferret
method

No Comments » - Posted in ruby on rails by kosmas

Tuesday, October 21st, 2008

ERROR: While executing gem … (ArgumentError)

Problem
After a recent upgrade to a newer rails version the gem package manager seems to be broken. Everytime you try to use gem install gem_name, you get the following error:
ERROR: While executing gem … (Gem::GemNotFoundException)
Deleting the cached files as suggested in other posts results in the error:
ERROR: While executing gem … (ArgumentError)
Solution
As suggested [...]

No Comments » - Posted in linux, ruby on rails by kosmas

Thursday, October 2nd, 2008

FBML Error (line 5): illegal tag “body” under “fb:canvas”

Problem
When trying to use facebooker according to the Developing facebook platform applications with rails book, in the network_test step you are getting the following error:
FBML Error (line 5): illegal tag “body” under “fb:canvas”
Solution
It should be caused because you are using the facebooker gem instead of the plugin.
Install the plugin:
ruby script/plugin install git://github.com/mmangino/facebooker.git

No Comments » - Posted in linux, ruby on rails by kosmas

Thursday, October 2nd, 2008

git and Mandriva

Problem
You want to install the git (Fast version control system) in Mandriva, but using:
urpmi git
installs the GNU Interactive Tools.
Solution
Use the following to install the version control system
urpmi git-core

No Comments » - Posted in Mandriva, linux, ruby on rails by kosmas