diff options
Diffstat (limited to 'actionwebservice/lib/action_web_service/templates/scaffolds')
-rw-r--r-- | actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml b/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml index a9d295aeee..ce755f7870 100644 --- a/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml +++ b/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml @@ -10,20 +10,19 @@ </p> <% if @scaffold_method.expects %> -<% i = 0 %> <strong>Method Parameters:</strong><br /> -<% @scaffold_method.expects.each do |type| %> +<% @scaffold_method.expects.each_with_index do |type, i| %> <p> <label for="method_params[<%= i %>]"><%= method_parameter_label(type.name, type) %> </label><br /> - <%= method_parameter_input_fields(@scaffold_method, type, "method_params[#{i}]") %> + <%= method_parameter_input_fields(@scaffold_method, type, "method_params", i) %> </p> - <% i += 1 %> <% end %> <% end %> <%= submit_tag "Invoke" %> +<%= end_form_tag %> <p> <%= link_to "Back", :action => @scaffold_action_name %> |