jseifer / spree-s3-download Goto Github PK
View Code? Open in Web Editor NEWSpree S3 Download Extension
Spree S3 Download Extension
I created an edit file with the following code in the s
I created a basic edit file override in the views/admin/products - exact same as normal except I added the link_to "Add S3 Object" per your tutorial at the end:
<% form_for(@Product, :url => object_url, :html => { :method => :put, :multipart => true }) do |f| %>
<% end %>
<%= link_to "Add S3 Object to "#{@product.name}"", new_admin_product_s3_products_path(@Product) %>
NoMethodError in Admin/products#edit
undefined method `new_admin_product_s3_products_path' for #ActionView::Base:0x38d1ed8
Something to with the routes perhaps?
If I'm doing something wrong here I'd be happy to update the README with what I have learned so as to give back to the project and help others get started more easily.
Jack
Hi,
I installed the extension with Spree 0.10, set up my s3 credentials then migrated the database. I can login to the admin section, but when I click product i get the following error:
NoMethodError in Admin/productsController#index
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<
Users/jack/Code/notes/vendor/extensions/s3_download/s3_download_extension.rb:46:in `add_s3_product_admin_tab'
Any ideas?
If anyone gets this error the quick fix is to
"gem install aws-s3" in shell.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.