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
>
> 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
>
> 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
>>
>> 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
>>
>> <https://groups.google.com/d/msgid/activescaffold/8b56bb3a-c800-4e3c-b709-f4fb5ed33b46n%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/dab1d292-2632-4cd6-9513-826161ce7f0bn%40googlegroups.com.