Skip to content

Instantly share code, notes, and snippets.

@shishirmk
Created October 31, 2012 23:17
Show Gist options
  • Select an option

  • Save shishirmk/3990571 to your computer and use it in GitHub Desktop.

Select an option

Save shishirmk/3990571 to your computer and use it in GitHub Desktop.
Error message on rails 3.2 for a simple @milestone.destroy
Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1: DELETE FROM `milestones` WHERE `milestones`.`id` = ?
These were the params according to the error message
{"_method"=>"delete",
"authenticity_token"=>"something something",
"id"=>"12"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment