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

Not able to show the variants with images in the Product Stocks.undefined method `url' for #<ActiveStorage::Attached::One:0x00007f35c8627230> #6

Open
yadavgoku opened this issue Jul 23, 2020 · 0 comments

Comments

@yadavgoku
Copy link

Screenshot from 2020-07-23 15-03-32

Hi .,
I am using spree 4.1 and gem 'spree_one_page_stock_management', github: 'vinsol-spree-contrib/spree_one_page_stock_management', branch: '4_1_stable'

Issue : Not able to show the variants with images in the Product Stocks.

`ActionView::Template::Error (undefined method url' for #ActiveStorage::Attached::One:0x00007f35c8627230):
18:
19:
20: <% if stock_item.variant.images.present? %>
21: <%= image_tag stock_item.variant.images.first.attachment.url(:mini) %>
22: <% end %>
23:
24: <%= stock_item.product.name %>

activesupport (6.0.3.2) lib/active_support/core_ext/module/delegation.rb:307:in 'method_missing'`

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

1 participant