Forum: Ruby on Rails ApplicationHelper::WillPaginate (NameError)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fresh M. (Guest)
on 2009-03-22 00:17
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)
Fresh M. (Guest)
on 2009-03-22 20:19
Help?
Frederick C. (Guest)
on 2009-03-22 21:45
(Received via mailing list)
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
This topic is locked and can not be replied to.