My controller is as follows:
class CommunityController < ApplicationController
helper :profile
def index
@title = “Community”
@letters = “ABCDEFGHIJKLMNOPQRSTUVWXYZ”.split("")
if params[:id]
@initial = params[:id]
@pages = Page.paginate :page => params[:page], :order =>
‘last_name, first_name’
end
end
def browse
end
def search
end
end
I get the following error when I click on an index:
NameError in CommunityController#index
uninitialized constant CommunityController::Page
RAILS_ROOT: /home/ironmantis7x/projects/mypetkingdom
Application Trace | Framework Trace | Full Trace
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/
dependencies.rb:105:in const_missing' /home/ironmantis7x/projects/mypetkingdom/app/controllers/ community_controller.rb:9:in
index’
Can someone help me out? I checked to see if I have will_paginate
installed and if it is loaded and it is installed correctly and it
responds.
What am I doing wrong?
Thanks!!
ironmantis7x