Skip to content

Instantly share code, notes, and snippets.

@jraczak
Created May 3, 2012 21:17
Show Gist options
  • Save jraczak/2589581 to your computer and use it in GitHub Desktop.
Save jraczak/2589581 to your computer and use it in GitHub Desktop.
ArgumentError in Rails_admin/main#index
Showing /Volumes/UserData/Users/jraczak/.rvm/gems/ruby-1.9.3-p125@crowdscore/gems/rails_admin-0.0.1/app/views/rails_admin/main/index.html.haml where line #139 raised:
wrong number of arguments (2 for 1)
Extracted source (around line #139):
136: = paginate(@objects, :theme => 'twitter-bootstrap', :remote => true)
137: = link_to(t("admin.misc.show_all"), index_path(params.merge(:all => true)), :class => "show-all btn clearfix pjax") unless total_count > 100 || total_count <= @objects.to_a.size
138: .clearfix.total-count= "#{total_count} #{@model_config.label_plural.downcase}"
139: - else
140: .clearfix.total-count= "#{@objects.size} #{@model_config.label_plural.downcase}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment