Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'undefined method `attachment' for nil:NilClass' if variants present #9

Open
connecticus opened this issue Nov 10, 2014 · 1 comment

Comments

@connecticus
Copy link

Hi! Thank you for your very best work.

The only problem is this:

ActionView::Template::Error (undefined method `attachment' for nil:NilClass):
11: <% @product.variant_images.each do |i| %>
12: <% next if @product.images.include?(i) %>
13:


  • 14: <%= image_tag(i.attachment.url(:mini)) %>
    15:

  • 16: <% end %>
    17: <% end %>

    This is evident where there are variants is present.

    @seanrclayton
    Copy link

    Also happening for me. But i do second thanks for the hard work.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants