ginlane / spree_importer Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
Hi,
I tested Your gem with Rails 4 and Spree 2.1 stable. At first I would like to say that it was a brilliant idea to use Google Spreadsheets.
I set up a small, 10 row file with the following columns:
name
price
description
I tried to import it from both google and from csv, but it imports the first row only.
The only error message I get is this:
ActionController::RoutingError (No route matches [GET] "/admin/assets/spritemap.png")
Any idea why this happens?
bundle exec rails g spree_importer:install
append db/seeds.rb
append app/assets/javascripts/store/all.js
/Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:98:in `binread': No such file or directory @ rb_sysopen - /Users/aditya/Practice/sunray/dlr/app/assets/javascripts/store/all.js (Errno::ENOENT)
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:98:in `replace!'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:59:in `invoke!'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/actions/inject_into_file.rb:30:in `insert_into_file'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:180:in `append_to_file'
from /Users/aditya/.rvm/gems/ruby-2.2.1/bundler/gems/spree_importer-5c7c8af2d4c7/lib/generators/spree_importer/install/install_generator.rb:13:in `add_javascripts'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/generators.rb:157:in `invoke'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/generate.rb:13:in `<top (required)>'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in `require'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:130:in `generate_or_destroy'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:50:in `generate'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/aditya/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:8:in `require'
from bin/rails:8:in `<main>
Hi,
I try to install this gem, but was not found
vagrant@precise32:/vagrant$ bundle
Fetching gem metadata from https://rubygems.org/...
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Could not find gem 'spree_importer (>= 0) ruby' in the gems available on this machine.
vagrant@precise32:/vagrant$
Greetings
I have installed the gem successfully . I can see the IMPORT option in the product tab .But when i click on the import getting the error The action 'index' could not be found for Spree::Admin::ImportSourceFilesController.
I am using the rails 4.1.8 with spree 2-4-stable. I try to add the the index action inside controller but then getting template missing error .So how can access the import functionality.
Could you please how google auth is working?
Do I need to register my application on google console and get the id and secret and keep it somewhere in the application. What should be the redirect uri and javascript origin?
I hope this is not stupid question. I have install the gem. but how do I used this gem? I cannot find any documentation what is the command how to import products? Any ideas? Thanks.
I can't figure out how to specify the taxons that pertain to products which are listed in csv file which is uploaded. Any help would be greatly appreciated.
Template is missing
Missing template spree/admin/import_source_files/index, spree/admin/resource/index, spree/admin/base/index, spree/base/index, application/index with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee, :rabl], :versions=>[:v1]}. Searched in: * "d:/Projects/webstore/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree_importer-432b3b13d5ab/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree_hub_connector-1cea0a174fc9/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/better_spree_paypal_express-104dda73d6f1/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree_social-357d58f69df1/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree_marketplace-a0ab2b6006ba/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree_contact_us-ec742ff30966/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree_static_content-5966c16c9ef1/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree_drop_ship-a264fd792586/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree_fancy-43b746cdeedd/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree_auth_devise-92b424f05c9f/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/gems/devise-3.2.2/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree_gateway-04c51e6bd24e/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree-119e859d3daa/frontend/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree-119e859d3daa/backend/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree-119e859d3daa/api/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/bundler/gems/spree-119e859d3daa/core/app/views" * "c:/Ruby200/lib/ruby/gems/2.0.0/gems/kaminari-0.15.1/app/views"
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.