Hi
I was out and couldn't test it before.
I have checked with both rails 5.2 and rails 6.0 and I get export link, next to
seach, just
with config.actions.add :export line.
What rails version do you use? And active_scaffold version? You may try master
branch of
active_scaffold, although I would expect master of export plugin would work
with
ActiveScaffold 3.5.x
Regards
El jueves, 6 de agosto de 2020 17:24:12 (CEST) Dennis Bulgatz escribió:
Thanks Sergio!
Changed gem to use the master branch, and no more errors when starting the
server, but
*no export option appears in the view* with config.actions.add :export. I can
use
config.action_links.add :index, label: 'Export' but not sure what params to
pass for it to
work. Do I need to add a method to the controller?
active_scaffold do |config|
#config.action_links.add :index, label: 'Export'
config.actions.add :export
config.export.default_file_format = 'csv' # or 'xlsx'
On Thursday, August 6, 2020 at 3:36:37 AM UTC-5 [email protected] wrote:
That gem is not updated to latest active scaffold version, try with this fork:
https://github.com/activescaffold/active_scaffold_export[1]
I think it works with newest activescaffold, but nobody confirmed yet. Also i'm
waiting to
get permission to release new version in rubygems.
https://github.com/activescaffold/active_scaffold/issues/635[2]
Best regards
El jue., 6 ago. 2020 10:25, Dennis Bulgatz <[email protected]> escribió:
Hello.. Would like to export the list view to CSV or Excel.
Tried https://github.com/activescaffold/active_scaffold_export[1]
When I start the rails server
/Users/dbulgatz/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/
active_scaffold_export-3.3.2/lib/active_scaffold_export/config/core.rb:18:in
`block in <top
(required)>': uninitialized constant
ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING (NameError)
Routing issue? What should a route look for a controller using
active_scaffold_export?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/activescaffold/
8b56bb3a-c800-4e3c-b709-f4fb5ed33b46n%40googlegroups.com[3].
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected][4].
To view this discussion on the web visit
https://groups.google.com/d/msgid/activescaffold/
dab1d292-2632-4cd6-9513-826161ce7f0bn%40googlegroups.com[5].
--------
[1] https://github.com/activescaffold/active_scaffold_export
[2] https://github.com/activescaffold/active_scaffold/issues/635
[3]
https://groups.google.com/d/msgid/activescaffold/8b56bb3a-c800-4e3c-b709-f4fb5ed33b46n%40googlegroups.com?utm_medium=email&utm_source=footer
[4] mailto:[email protected]
[5] https://groups.google.com/d/msgid/activescaffold/
dab1d292-2632-4cd6-9513-826161ce7f0bn%40googlegroups.com?
utm_medium=email&utm_source=footer
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/activescaffold/8442968.B7BfnbmZrp%40pc-sergio.