sorting helper does not work -- need help

Hi guys!

   I am still not able to get the sorting onclick of the table headers to work...

   I get this error:

NoMethodError in PeopleController#index

You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.

RAILS_ROOT: C:/ruby/contact Application Trace | Framework Trace | Full Trace

app/helpers/sort_helper.rb:104:in `sort' app/controllers/people_controller.rb:19:in `index' app/controllers/people_controller.rb:18:in `sort' app/controllers/people_controller.rb:18:in `index'

This is my code:

controller.rb

controller.rb

  helper :sort

  # include SortHelper

try to comment include SortHelper, tell me what's going on?

reinhart http://teapoci.blogspot.com

well, after commenting, i get the same error...

well, i get the same error even after commenting the code

Bro you run it in PeopleController or PersonController, please check it back because i see your script is person not people in your commented code for view in helper. And also check your config/route.rb to ensure your controller name.

Reinhart

yes, i confirmed, it is peoplecontroller, and i have used peoplecontroller itself, yet i am getting the error...what could be the mistake?