I am still not able to get the sorting onclick of the table headers
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.
Application Trace | Framework Trace | Full Trace
This is my code:
# include SortHelper
try to comment include SortHelper, tell me what's going on?
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.
yes, i confirmed, it is peoplecontroller, and i have used
peoplecontroller itself, yet i am getting the error...what could be