diff options
Diffstat (limited to 'actionwebservice')
-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 |