[Rails] Re: shopmaster export from aliexpress to csv for spree_datashift import

2018-06-12 Thread qwan
Datashift has template generation for any active record model to csv or excel, for example to create a csv template for a Spree product : thor datashift:generate:csv -m Spree::Product --result /tmp/spree_products. csv You can also export the headers with data via datashift:export:csv $ more

[Rails] Re: shopmaster export from aliexpress to csv for spree_datashift import

2018-06-12 Thread qwan
> > p.s The excel template generation is a bit more advanced e.g does not > include Rails cols like id, created_at by default > $ th datashift:generate:excel Usage: thor datashift:generate:excel -m, --model=MODEL -r, --result=RESULT Options: -m, --model=MODEL

Re: [Rails] shopmaster export from aliexpress to csv for spree_datashift import

2018-06-12 Thread qwan
thor is a good drop in replacement for rake for CLIs - for me I much prefer it's argument/option definition and parsing, and it's a bit easier to organise and invoke scripts as they are PORO for me, rake is good for build orientated tasks, thor for everything else On Monday, 11 June 2018 22:4

Re: [Rails] Rails 5.2 Active storage Unable to autoload constant ActiveStorage::Blob::Analyzable

2018-06-12 Thread Skt Hg
Hi Frantz I have an issue similar to Mattia's, so I tried your suggestion. Thanks for the advice, although installing mini_magick (v4.8) didn't solve the issue for me. For context, I'm on ruby 2.4.2 / rails 5.2 / active storage 5.2 I followed this tutorial for the active storage setup http://edg

[Rails] Chrome not reading authenticity token?

2018-06-12 Thread Karthikeyan A K
Hello All, I have a strange bug in Rails app I developing, I am using Devise gem. All works fine on firefox, but when it comes to google chrome during signup I am getting an error like: The change you wanted was rejected. Maybe you tried to change something you didn't have access to. If you are

Re: [Rails] Rails 5.2 Active storage Unable to autoload constant ActiveStorage::Blob::Analyzable

2018-06-12 Thread Skt Hg
Replying to myself in case someone hits the same issue. First thanks Frank for the pointers you sent me. I am new to rails so it was very helpful to debug from a clean state. I got to solve it, the main issue for me was a parsing error in the ‘storage.yml’ file. The storage engine was chocking

Re: [Rails] shopmaster export from aliexpress to csv for spree_datashift import

2018-06-12 Thread fugee ohu
On Tuesday, June 12, 2018 at 5:00:58 AM UTC-4, qwan wrote: > > thor is a good drop in replacement for rake for CLIs - for me I much > prefer it's argument/option definition and parsing, and it's a bit easier > to organise and invoke scripts as they are PORO > > for me, rake is good for build o

Re: [Rails] Rails 5.2 Active storage Unable to autoload constant ActiveStorage::Blob::Analyzable

2018-06-12 Thread Frantz Augustin
I am glad you solved it. Frantz Augustin Founder @ Club Artizan clubartizan.com On Tue, Jun 12, 2018 at 2:04 PM, Skt Hg wrote: > Replying to myself in case someone hits the same issue. > > First thanks Frank for the pointers you sent me. I am new to rails so it > was very helpful to debug from