class User < ActiveRecord::Base has_many :messages end
Then you can do the following once you have a valid user.
@user.messages
class User < ActiveRecord::Base has_many :messages end
Then you can do the following once you have a valid user.
@user.messages
Can that be used in the message contoller?
@user.messages