title: Rails: Autoloading lib not working
body: <p>For some reason my autoloader isn't working, i followed some tutorials, here is what my config\application.rb file looks like</p>
  
  <pre><code>require File.expand_path('../boot', __FILE__)
  
  require 'rails/all'
  
  Bundler.require(:default, Rails.env) if defined?(Bundler)
  
  module Quotes
    class Application &lt; 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)
  </code></pre>
  
  <p>I am getting this error:
  uninitialized constant ActionView::CompiledTemplates::PaginationListLinkRenderer</p>
  
  <p>Here is my lib\paginationlistlinkrenderer.rb code</p>
  
  <pre><code>class PaginationListLinkRenderer &lt; WillPaginate::ViewHelpers::LinkRenderer
  
      protected
      ...
      ...
  
  end
  </code></pre>
  
  <p>Here is my index.html.erb</p>
  
  <pre><code>&lt;div id="img_content"&gt;
      &lt;%= render @posts%&gt;
  &lt;/div&gt;
  
  &lt;%= will_paginate(@posts, :renderer =&gt; PaginationListLinkRenderer) %&gt;
  &lt;%= link_to "New Quote", new_post_path %&gt;
  </code></pre>
  
  <p>I just need to get this file to pre-load so my controller will recognize it. Any ideas?</p>