RailsCasts Pro episodes are now free!

Learn more or hide this

Destroy without JavaScript (revised)

#77 Destroy without JavaScript (revised)

Jun 16, 2012 | 8 minutes | Views, Controllers, Routing
A destroy link in Rails does not work without JavaScript. In this episode I show two techniques for gracefully degrading destroy links: button_to and a delete action.
  • Download:
  • source codeProject Files in Zip (93.2 KB)
  • mp4Full Size H.264 Video (18.6 MB)
  • m4vSmaller H.264 Video (9.52 MB)
  • webmFull Size VP8 Video (13 MB)
  • ogvFull Size Theora Video (21 MB)