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
>
> 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
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
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
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
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
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
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
8 matches
Mail list logo