Destroy action redirecting when I didn't tell it to


I used scaffold to generate my initial code to manage some rows in a
database, and I need to now change the behaviour of the destroy action.
So, I removed the original destroy code, which was to delete the object
and redirect back to the list action, and replaced it with an empty

This should now complain about a missing destroy view, since there
isn’t one, and the empty method will call render by default.

This doesn’t happen, after calling destroy, the page is magically
redirected to the list action, when none of my code is telling it to do

Why is that? Seems kinda inconsistent.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs