). After that, add this to roles_user.rb:
On Apr 16, 10:39 pm, steph <
steph.brid...@gmail.com> wrote:
> On Feb 25, 4:16 am, rachel anne <
rachelannenava...@gmail.com> wrote:
>
>
>
> > hi
>
> > i need help with this :) i'm not sure how to do it as i'm pretty new
> > to rails. i followed what was written in the test db migration file
> > which has the id for roles_user table set to false. i believe that is
> > the problem. but i'm sure you wouldn't have set it up like that if it
> > won't work, right? so question is, what could possibly be wrong with
> > my code? i added acts_as_authorized_user and acts_as_authorizable
> > in my user model and acts_as_authorizable in my other model.
>
> > when i do:
>
> > @object.accepts_role('tester', current_user)
>
> > i get this error:
>
> > PGError: ERROR: column "id" does not exist
> > LINE 1: ...248664', 1, 23, '2009-02-25 15:44:49.248664') RETURNING
> > "id"
> > ^
> > : INSERT INTO "roles_users" ("updated_at", "role_id", "person_id",
> > "created_at") VALUES('2009-02-25 15:44:49.248664', 1, 23, '2009-02-25
> > 15:44:49.248664') RETURNING "id"
>
> I have the same problemPostgreSQL8.3.7, rails 2.3.2. The code in