On 30 Nov 2008, at 19:58, John Doe wrote:
> > > Here's the code from my view. > > [code=]<% @dilemmas.each do |dilemma| %> > <% dilemma.dilemma_sides.each do |dilemma_side| %> > > <% side_image = dilemma_side.side_images.first %> > <%= side_image.filename.to_s %> > > <%end%> > <% end %>[/code] > When I execute the code, I get the following error: > > You have a nil object when you didn't expect it! > The error occurred while evaluating nil.filename > The obvious answer would be that you have a dilemma side with no side images. Fred > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

