I think this is an easy question but I can't seem to wrap my head around it to solve it. I want to create an instance variable from a property of another instance variable. For example:
@posts = Post.find(:all, :conditions => ['day > ?', Date.today], :order => 'day')
I want to get another instance variable that contains all of the dates from the @posts
. Is there a way of quickly getting it without having to create a helper/function?
Thanks!