json.extract! assignment, :id, :created_at, :updated_at, :name, :description, :due_at json.url assignment_url(assignment, format: :json)