In the new controller methods account for an error case. Then the object worked upon is also set, so you do object ||= Object.new instead of a simple assignment.
In the new controller methods account for an error case.
Then the object worked upon is also set, so you do object ||= Object.new instead of a simple assignment.