Hey everybody,
i’ve got a really nerving problem with sorting table columns, which i
cant solve by myself. So i need your help.
I follwed all steps as showed in this railscast:
and it worked very well.
BUT as i restated my app i get this stupid error message:
NoMethodError in GroupsController#index
You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.+
RAILS_ROOT: c:/Users/Vennil/rails/gruppenmanager
Application Trace | Framework Trace | Full Trace
c:/Users/Vennil/rails/gruppenmanager/app/controllers/groups_controller.rb:12:in
`index’
Why the hell does it worked before and not now? Any ideas?
Many thanks in advance!
Ray
EDIT: Oh i forgotten to post my Modelline:
12| @users = User.find(:all, :order => sort_column + " " +
sort_direction)