GithubHelp home page GithubHelp logo

Comments (1)

xaph avatar xaph commented on June 16, 2024

@toreserter I couldn't reproduce this error. TodosController does not have any code to destroy todos. Also my destroy request log likes this:

Started DELETE "/todos/22" for 127.0.0.1 at 2012-09-02 16:05:52 +0300
Processing by TodosController#destroy as JS
  Parameters: {"id"=>"22"}
  Todo Load (0.2ms)  SELECT "todos".* FROM "todos" WHERE "todos"."id" = ? AND (deleted_at IS NULL) ORDER BY starred DESC, created_at ASC LIMIT 1  [["id", "22"]]
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1
   (0.0ms)  begin transaction
  Todo Exists (0.1ms)  SELECT 1 AS one FROM "todos" WHERE ("todos"."name" = 'laheyyy' AND "todos"."id" != 22 AND "todos"."user_id" = 2) LIMIT 1
   (0.3ms)  UPDATE "todos" SET "deleted_at" = '2012-09-02 13:05:52.118833', "updated_at" = '2012-09-02 13:05:52.120591' WHERE "todos"."id" = 22
   (3.6ms)  commit transaction
  Rendered todos/destroy.js.erb (0.6ms)
Completed 200 OK in 21ms (Views: 5.4ms | ActiveRecord: 4.5ms)

update transaction only updates deleted_at

from forgething.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.