diff options
Diffstat (limited to 'actionwebservice/lib/action_web_service/templates')
-rw-r--r-- | actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml b/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml index e7b5f47f03..a9d295aeee 100644 --- a/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml +++ b/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml @@ -10,13 +10,15 @@ </p> <% if @scaffold_method.expects %> +<% i = 0 %> <strong>Method Parameters:</strong><br /> <% @scaffold_method.expects.each do |type| %> <p> - <label for="method_params[]"><%= type.name.to_s.camelize %></label><br /> - <%= method_parameter_input_fields(@scaffold_method, type) %> + <label for="method_params[<%= i %>]"><%= method_parameter_label(type.name, type) %> </label><br /> + <%= method_parameter_input_fields(@scaffold_method, type, "method_params[#{i}]") %> </p> + <% i += 1 %> <% end %> <% end %> |