diff options
author | Kent Sibilev <ksibilev@gmail.com> | 2006-10-31 03:13:28 +0000 |
---|---|---|
committer | Kent Sibilev <ksibilev@gmail.com> | 2006-10-31 03:13:28 +0000 |
commit | 98a9b6521886009187afd324e0cdad64902e0e97 (patch) | |
tree | 61cf949687b71d74711ec80950d45fa88cebdeb3 | |
parent | 92365291b218c2a3c691262ac8c2fc4fb32cecbb (diff) | |
download | rails-98a9b6521886009187afd324e0cdad64902e0e97.tar.gz rails-98a9b6521886009187afd324e0cdad64902e0e97.tar.bz2 rails-98a9b6521886009187afd324e0cdad64902e0e97.zip |
Removed deprecated end_form_tag helper.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionwebservice/CHANGELOG | 2 | ||||
-rw-r--r-- | actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml | 4 | ||||
-rw-r--r-- | actionwebservice/test/scaffolded_controller_test.rb | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/actionwebservice/CHANGELOG b/actionwebservice/CHANGELOG index 282bf0dd09..a07042d1d5 100644 --- a/actionwebservice/CHANGELOG +++ b/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] diff --git a/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml b/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml index d79a060bbd..767284e0d4 100644 --- a/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml +++ b/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 %> diff --git a/actionwebservice/test/scaffolded_controller_test.rb b/actionwebservice/test/scaffolded_controller_test.rb index c339c81647..09c40a865e 100644 --- a/actionwebservice/test/scaffolded_controller_test.rb +++ b/actionwebservice/test/scaffolded_controller_test.rb @@ -84,6 +84,7 @@ class ScaffoldedControllerTest < Test::Unit::TestCase 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 |