Skip to content

Instantly share code, notes, and snippets.

@jraczak
Created June 19, 2012 21:22
Show Gist options
  • Save jraczak/2956622 to your computer and use it in GitHub Desktop.
Save jraczak/2956622 to your computer and use it in GitHub Desktop.
Error Output for Rails_Admin "list" function
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}"
Rails.root: /Volumes/UserData/Users/jraczak/Desktop/Crowdscore/dev/crowdscore
Application Trace | Framework Trace | Full Trace
app/helpers/application_helper.rb:71:in `paginate'
Request
Parameters:
{"model_name"=>"venue",
"sort_reverse"=>"false",
"sort"=>"id"}
Show session dump
Show env dump
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment