Error:
SyntaxError in UsersController#index
/home/ubuntu/ruby/users/app/controllers/users_controller.rb:7: syntax error, unexpected ':', expecting '}'
format.json{render json: UsersDatatable.new(view_context)}
^
I am trying to get dataTables plugin to work with my rails application (railcast #340). I have poured over and over and have no clue where this error might be coming from. It does not look like it's any different from the code listed in http://railscasts.com/episodes/340-datatables?view=asciicast (except that I changed the name from Products to Users everywhere. I have completely hit a wall. My code seems to be identical in all but the name, and yet it doesn't work! (it worked before I tried to start setting up the AJAX part)
EDIT: Originally I used 1.8.7 and rails (3.2.7), but then upgraded to ruby 1.9.3, so not sure why I am still getting that error