I installed ActiveAdmin successfully:
My gemfile code:
source \'https://rubygems.org\'
gem \'rails\', \'3.2.10\'
# Bundle edge Rails instead:
I'm using Ruby 2.1.5p273 and Rails 4.1.8. I encountered the same problem.
@mohamed-ibrahim's answer solved the error underfined method 'per'
, but got another error
Showing c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/bundler/gems/activeadmin-06bf79c58216/app/views/active_admin/resource/index.html.arb where line #2 raised: wrong number of arguments (0 for 1)
Adding alias_method :total_count, :count
fixed it.
if defined?(WillPaginate)
module WillPaginate
module ActiveRecord
module RelationMethods
alias_method :per, :per_page
alias_method :num_pages, :total_pages
alias_method :total_count, :count
end
end
end
end