On Fri, Feb 25, 2011 at 11:28 AM, John Merlino <[email protected]> wrote:
> post.blog_images.first.image_file_name > > outputs > > undefined method `image_file_name' for nil:NilClass > > I think that means I called a method on a class that it cannot find? It means that this particular 'post' has no 'blog_images' associated with it; the array is empty so of course 'first' is nil ... -- Hassan Schroeder ------------------------ [email protected] twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

