Permalink
Browse files

to rails-2-3-stable

  • Loading branch information...
1 parent 4468a7f commit fe80fa8cc39673d24f14f121e50483bc528a1ec9 @barda barda committed Dec 2, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 app/helpers/application_helper.rb
  2. +2 −2 app/views/projects/_task.html.erb
@@ -1,7 +1,7 @@
# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
def remove_child_link(name, f)
- f.hidden_field(:_delete) + link_to_function(name, "remove_fields(this)")
+ f.hidden_field(:_destroy) + link_to_function(name, "remove_fields(this)")
end
def add_child_link(name, f, method)
@@ -3,6 +3,6 @@
<%= f.text_field :name %>
<%= remove_child_link "remove", f %>
<%# Alternatively you can use a check box: %>
- <%# f.check_box :_delete %>
- <%# f.label :_delete, "(remove)" %>
+ <%#= f.check_box :_destroy %>
+ <%#= f.label :_destroy, "(remove)" %>
</div>

0 comments on commit fe80fa8

Please sign in to comment.