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

Tuesday, December 18th, 2007

using authentication with acts_as_authenticated

Problem
You want to use the easiest authentication method, in order to add users/permissions to your application.
Solution

Install the act_as_authenticated plugin:
script/plugin install http://svn.techno-weenie.net/projects/plugins/acts_as_authenticated

Generate controllers, models and migration:
script/generate authenticated user account

Add necessary user foreign keys in appropriate tables (ie customer in xxx_create_users.rb), plus other fields you may want to use in your user table (ie role):
create table “users”, [...]

No Comments » - Posted in ruby on rails by kosmas