ApplicationHelper::WillPaginate (NameError)


#1

What wrong?

environment.rb

require “will_paginate”

application_helper.rb

include WillPaginate::ViewHelpers
def will_paginate_with_i18n(collection, options = {})
will_paginate_without_i18n(collection, options.merge(:previous_label =>
I18n.t(:previous), :next_label => I18n.t(:next)))
end
alias_method_chain :will_paginate, :i18n

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in
`load_missing_constant’: uninitialized constant
ApplicationHelper::WillPaginate (NameError)


#2

Help?


#3

On Mar 22, 6:19 pm, Fresh M. removed_email_address@domain.invalid
wrote:

Help?

Where you put require ‘will_paginate’ in environment.rb may be
relevant.

Fred