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
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.