As part of a wider application, I have a todo list set up with boolean
column indicating if the todo is complete or not. It defaults to
false to indicate not complete.
I'm using a check box that calls a defined action called
complete_item. At the moment it looks like this:
class TodosController < ApplicationController
@todo = @matter.todos.find_by_id(params[:id])
@todo.complete = true
I have also tried the following various methods, none of which work:
I've also tried replacing true with 1.
I can see from the logs that the object is being updated but with the
complete field still set to false. Any thoughts?