Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"wrong number of arguments (1 for 0)", activeadmin (1.0.0.pre) ruby 2.1.2 and rails 4.1.5 #36

Open
codemilan opened this issue Nov 7, 2014 · 2 comments

Comments

@codemilan
Copy link

No description provided.

@zurzer
Copy link

zurzer commented Dec 19, 2014

yourproject/config/environments/production.rb
set
config.eager_load = false

activeadmin-axlsx/activeadmin-axlsx.gemspec
s.add_runtime_dependency 'activeadmin', "~> 0.6.0"
to
s.add_runtime_dependency 'activeadmin', "> 0.6.0"

ArgumentError (wrong number of arguments (1 for 0)):
activeadmin/lib/active_admin/resource_controller/streaming.rb:11:in `index'
Change line 11
def index
to
def index(arg=nil)

activeadmin-axlsx/lib/active_admin/axlsx/resource_controller_extension.rb:11:in `per_page_with_xlsx'
def per_page_with_xlsx
#add
max_csv_records = 1000
if request.format == Mime::Type.lookup_by_extension(:xlsx)
return max_csv_records
end
per_page_without_xlsx
end

mfairburn added a commit to mfairburn/activeadmin-axlsx that referenced this issue Mar 18, 2015
mfairburn added a commit to mfairburn/activeadmin-axlsx that referenced this issue Mar 18, 2015
@bhargavd
Copy link

This change works perfect in local but how to have this fix in production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants