json.extract! copy, :id, :text, :created_at, :updated_at json.url copy_url(copy, format: :json)