class Comment < ActiveRecord::Base belongs_to :post belongs_to :user end
So, with the above link, can I get both user data and messages from this comment object ?.
as
@comment.post.post_title and @comment.user.user_name.
Also note that I used the comment as an attached message resource.
resources :posts do resources :comments end
source share