Error from Rails, does this make sense to you?
<%= @permission.inspect %> outputs: [#<Permission project_id: 3, role_id: 2, user_id: 13>]
<%= Role.find(@permission.role_id) %>
undefined method `role_id' for [#<Permission project_id: 3, role_id: 2, user_id: 13>]:ActiveRecord::Relation
This doesn't work either for some reason: @permission.role.name
Any Ideas? thanks