Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed deprecated end_form_tag helper.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 98a9b6521886009187afd324e0cdad64902e0e97 1 parent 9236529
Kent Sibilev authored
View
2  actionwebservice/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Removed deprecated end_form_tag helper. [Kent Sibilev]
+
* Removed deprecated @request and @response usages. [Kent Sibilev]
* Removed invocation of deprecated before_action and around_action filter methods. Corresponding before_invocation and after_invocation methods should be used instead. #6275 [Kent Sibilev]
View
4 actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml
@@ -1,6 +1,6 @@
<h4>Method Invocation Details for <em><%= @scaffold_service %>#<%= @scaffold_method.public_name %></em></h4>
-<%= form_tag :action => @scaffold_action_name + '_submit' %>
+<% form_tag(:action => @scaffold_action_name + '_submit') do -%>
<%= hidden_field_tag "service", @scaffold_service.name %>
<%= hidden_field_tag "method", @scaffold_method.public_name %>
@@ -22,7 +22,7 @@
<% end %>
<%= submit_tag "Invoke" %>
-<%= end_form_tag %>
+<% end -%>
<p>
<%= link_to "Back", :action => @scaffold_action_name %>
View
1  actionwebservice/test/scaffolded_controller_test.rb
@@ -84,6 +84,7 @@ def test_scaffold_invoke_method_params
def test_scaffold_invoke_method_params_with_struct
get :scaffold_invoke_method_params, :service => 'scaffolded', :method => 'HelloStructParam'
assert_template 'parameters.rhtml'
+ assert_tag :tag => 'form'
assert_tag :tag => 'input', :attributes => {:name => "method_params[0][name]"}
end
Please sign in to comment.
Something went wrong with that request. Please try again.