diff options
author | Leon Breedt <bitserf@gmail.com> | 2005-05-01 05:07:37 +0000 |
---|---|---|
committer | Leon Breedt <bitserf@gmail.com> | 2005-05-01 05:07:37 +0000 |
commit | a080b1a231ba26e3d74fd1770abc97068a9d7095 (patch) | |
tree | 79e94d2ce13573d0818b74c3bb51a89b040b5658 /actionwebservice/lib/action_web_service/templates | |
parent | b921b5da156d33a7ced0656074f659854fb9082e (diff) | |
download | rails-a080b1a231ba26e3d74fd1770abc97068a9d7095.tar.gz rails-a080b1a231ba26e3d74fd1770abc97068a9d7095.tar.bz2 rails-a080b1a231ba26e3d74fd1770abc97068a9d7095.zip |
add support for structured types as input parameters to scaffolding,
fixes scaffolding for APIs like metaWeblog that require an input
struct (by dropping structs in nested <ul> lists).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1265 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 %> |