Permalink
Browse files

there is no "delete" action in a controller

  • Loading branch information...
1 parent 030af5e commit 30123653993cd3ef6eda9a4299f287e945d963f3 @5v3n 5v3n committed Aug 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/url_helper.rb
@@ -338,7 +338,7 @@ def link_to(name = nil, options = nil, html_options = nil, &block)
# # </form>"
#
#
- # <%= button_to "Delete Image", { :action => "delete", :id => @image.id },
+ # <%= button_to "Delete Image", { :action => "destroy", :id => @image.id },
# :method => :delete, :data => { :confirm => "Are you sure?" } %>
# # => "<form method="post" action="/images/delete/1" class="button_to">
# # <div>

0 comments on commit 3012365

Please sign in to comment.