In my controller
@comment = Comment.build_from(@post, @user.id, comment_body)
@comment.save
When I access,
@comment.user
this is weird - Watch window shows that this a User object with an object id but it is practically empty meaning the attributes is nil
so when I do @comment.user.id
, it chokes.
The comment.rb is in the plugin and has the belongs_to :user defined
Any reason why I am unable to access the user model upon comment creation?
Thanks