Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5945839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:44:17+00:00 2026-05-22T16:44:17+00:00

For some reason my autoloader isn’t working, i followed some tutorials, here is what

  • 0

For some reason my autoloader isn’t working, i followed some tutorials, here is what my config\application.rb file looks like

require File.expand_path('../boot', __FILE__)

require 'rails/all'

Bundler.require(:default, Rails.env) if defined?(Bundler)

module Quotes
  class Application < Rails::Application

    # Custom directories with classes and modules you want to be autoloadable.
    # config.autoload_paths += %W(#{config.root}/extras)
        config.autoload_paths += %W(#{config.root}/lib)

I am getting this error:
uninitialized constant ActionView::CompiledTemplates::PaginationListLinkRenderer

Here is my lib\paginationlistlinkrenderer.rb code

class PaginationListLinkRenderer < WillPaginate::ViewHelpers::LinkRenderer

    protected
    ...
    ...

end

Here is my index.html.erb

<div id="img_content">
    <%= render @posts%>
</div>

<%= will_paginate(@posts, :renderer => PaginationListLinkRenderer) %>
<%= link_to "New Quote", new_post_path %>

I just need to get this file to pre-load so my controller will recognize it. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:44:17+00:00Added an answer on May 22, 2026 at 4:44 pm

    In your config/initializers folder make a file called pagination.rb and include the following. Restart and it should work.

    module WillPaginate::ViewHelpers
        # default options that can be overridden on the global level
        @@pagination_options = {
          :class        => 'pagination',
          :previous_label   => '&laquo; Previous',
          :next_label   => 'Next &raquo;',
          :inner_window => 2, # links around the current page
          :outer_window => -1, # links around beginning and end
          :limit        => 5,
          :separator    => ' ', # single space is friendly to spiders and non-graphic browsers
          :param_name   => :page,
          :params       => nil,
          :gap          => "...",
          :renderer     => '::PaginationListLinkRenderer',
          :page_links   => true,
          :container    => true
        }
        mattr_reader :pagination_options
    end
    

    Change you Lib pagination File to…

    pagination_list_link_renderer.rb
    

    Make sure you have the latest version of Will_Pagination. Version 3 Pre

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason it looks like constructor delegation doesn't work in the following snippet:
For some reason my simple jquery bind event isn't working. The funny thing is
for some reason my event data isn't working correctly with jquery fullcalendar when I
For some reason on my application when running on some configuration of hard disk
For some reason, my script isn't writing out the text after I remove the
I am working on a little Perl module and for some reason I had
For some reason the following code is giving me an exception. <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries>
For some reason, pthread_create isn't allowing me to pass a struct as an argument.
for some reason, this isn't adding and removing a new class on elements with
For some reason I get this: 1>LINK : fatal error LNK1104: cannot open file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.