aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-03-03 03:19:37 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-03-03 03:19:37 +0000
commit3d4965765cd47df7f3f9d3db4cbb117936b1c939 (patch)
treea7dcd1024112bde8716f09c1e75da22cb640d38f /actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml
parent94725b02bcc5e623dcbe1d73d57b2ede2c88440e (diff)
downloadrails-3d4965765cd47df7f3f9d3db4cbb117936b1c939.tar.gz
rails-3d4965765cd47df7f3f9d3db4cbb117936b1c939.tar.bz2
rails-3d4965765cd47df7f3f9d3db4cbb117936b1c939.zip
Fix a ton of issues with AWS (yes, Kent saved it from being unbundled in 1.1) #4038 [Kent Sibilev]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml')
-rw-r--r--actionwebservice/lib/action_web_service/templates/scaffolds/parameters.rhtml7
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 %>