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.
Ead43bcb0202410540a6a7cee5955d46?d=identicon&s=25 Fresh Mix (giga)
on 2009-03-21 23: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)
Ead43bcb0202410540a6a7cee5955d46?d=identicon&s=25 Fresh Mix (giga)
on 2009-03-22 19:19
Help?
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-03-22 20:45
(Received via mailing list)
On Mar 22, 6:19 pm, Fresh Mix <rails-mailing-l...@andreas-s.net>
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.