resolve the delete resource issue.
It is because the link_to alway uses http get method , while to delete a resource, it should use post.
So, I modify it to use botton_to. Maybe it is not the best solution.

refer to http://stackoverflow.com/questions/4606860/rails-3-link-to-to-destroy-not-working