Hola,
Cuanto menos es curioso el error ya parece que ejecuta un rollback que
la verdad no se de donde sale, a alguno le ha pasado algo parecido?
$ script/console
a = Author.find_by_id 44
=> #<Author id: 44, slug: “fernandez-santos”, name: “Aitor”, last_names:
“Fernandez S.”, biography: “Credibly transform worldwide platforms
rather than …”>a.destroy
TypeError: can’t convert nil into String
$ vim development.log
e[4;35;1mAuthor Load (0.018374)e[0m e[0mSELECT * FROM authors
WHERE (authors.id = 44) LIMIT 1e[0m
e[4;36;1mSQL (0.000938)e[0m e[0;1mBEGINe[0m
e[4;35;1mTagging Columns (0.013203)e[0m e[0mSHOW FIELDS FROM
taggingse[0m
e[4;36;1mTag Columns (0.042236)e[0m e[0;1mSHOW FIELDS FROM
tagse[0m
e[4;35;1mTagging Load Including Associations (0.008229)e[0m
e[0mSELECT taggings.id AS t0_r0, taggings.tag_id AS t0_r1,
taggings.taggable_id AS t0_r2, taggings.taggable_type AS t0_r3,
taggings.created_at AS t0_r4, tags.id AS t1_r0, tags.name AS
t1_r1 FROM taggings LEFT OUTER JOIN tags ON tags.id =
taggings.tag_id WHERE (taggings.taggable_id = 44 AND
taggings.taggable_type = ‘Author’) e[0m
e[4;36;1mTagging Destroy (0.001597)e[0m e[0;1m DELETE FROM
taggings
WHERE id = 9
e[0m
e[4;35;1mTagging Destroy (0.002598)e[0m e[0m DELETE FROM taggings
WHERE id = 10
e[0m
e[4;36;1mAuthor Destroy (0.001388)e[0m e[0;1m DELETE FROM authors
WHERE id = 44
e[0m
e[4;35;1mSQL (0.002015)e[0m e[0mROLLBACKe[0m
¿saben el por que de ese ROLLBACK? por que parece que el resto de
operaciones las realiza correctamente.
Muchas gracias por la ayuda.
Un saludo.