randym / activeadmin-axlsx

ActiveAdmin plugin using Axlsx for adding Excel (xlsx) download links for your resources
MIT License
82 stars 134 forks source link

wrong number of arguments (1 for 0) #31

Closed sangyongjung closed 10 years ago

sangyongjung commented 10 years ago

It seems that the gem is not compatible with active_admin 1.0.0 yet, while it is required if using rails 4.1. :(

randym commented 10 years ago

Sorry - I'm working on an update...

AhmedNadar commented 10 years ago

Same issue here. @randym Do you using specific version would solve the issue for now? Thanks

xenda commented 10 years ago

Is there any update with this issue?

jcavalieri commented 10 years ago

same

mohsen-alizadeh commented 10 years ago

You have to change one line in activeadmin gem

Open file lib/active_admin/resource_controller/streaming.rb in activeadmin

Change line 11 def index to def index(arg=nil)

And enjoy yourself :+1:

besi commented 10 years ago

+1

Jamevidi commented 10 years ago

Works =) Thanks!

Im using: activeadmin 1.0.0.pre, rails 4.0.2

sangyongjung commented 10 years ago

Thanks all!

codemilan commented 10 years ago

sorry for this baby question, but how to edit that file, I'm not getting that file ? I'm too facing the same problem, also if we edit that file, will it work in production environment?

bacrossland commented 10 years ago

@coderawal fork the repository, update the file in your fork, install the gem from your updated fork and you should have the fix.

codemilan commented 10 years ago

thanks bacrossland, got it working.

vkeziah commented 8 years ago

Any solution ? How to solve this issue on heroku ?

vkeziah commented 8 years ago

I am facing same issue with rails 4.2.2

vkeziah commented 8 years ago

@randym do you have any solution for this