Displaying 1 result from an estimated 1 matches for "permission_typ".
Did you mean:
permission_type
2012 Jan 18
2
Polymorphic and standard association issue
...es << Role.create({:role => 100, :user_id => @user.id})
Rails.logger.info @user.roles.inspect
================================
...returns nothing. I''m very confused here.
My roles table has
---------------------------------------------------
| id | user_id | permission_id | permission_type |
---------------------------------------------------
| 1 | 1 | NULL | NULL |
---------------------------------------------------
If anyone can help me out I''d greatly appreciate it.
Environment:
--------------
Ruby: REE
Rails: 3.1.2
Passenger
Thank you,
Spa...