4291: Clean up HTTP methods in Workbench URL generators.
authorBrett Smith <brett@curoverse.com>
Tue, 25 Nov 2014 22:57:47 +0000 (17:57 -0500)
committerBrett Smith <brett@curoverse.com>
Wed, 3 Dec 2014 16:23:38 +0000 (11:23 -0500)
commitb870e7c0be3457257ea445fe54a1893e874530e1
tree68cde809f6bc59ab2a1cefc2e1bf736bc9f90c33
parent0cc93f8d08a343e61575eace0e76e1a243412504
4291: Clean up HTTP methods in Workbench URL generators.

According to the docs at
<http://api.rubyonrails.org/files/actionview/lib/action_view/helpers/url_helper_rb.html>:

* `button_to` and `form_for` take :method as a symbol.
* `link_to` takes :method as a symbol, and only supports :delete,
  :post, :patch, and :put.  Any link that should be done with GET
  should not have a method specified.
* Note that `form_tag` *does* take a string, so not every method
  should be symbolized.
14 files changed:
apps/workbench/app/views/collections/_sharing_button.html.erb
apps/workbench/app/views/collections/_show_files.html.erb
apps/workbench/app/views/collections/_show_recent.html.erb
apps/workbench/app/views/layouts/body.html.erb
apps/workbench/app/views/pipeline_templates/_show_recent.html.erb
apps/workbench/app/views/pipeline_templates/show.html.erb
apps/workbench/app/views/projects/_show_dashboard.html.erb
apps/workbench/app/views/projects/_show_sharing.html.erb
apps/workbench/app/views/projects/_show_tab_contents.html.erb
apps/workbench/app/views/projects/show.html.erb
apps/workbench/app/views/user_agreements/index.html.erb
apps/workbench/app/views/users/_add_ssh_key_popup.html.erb
apps/workbench/app/views/users/_manage_ssh_keys.html.erb
apps/workbench/app/views/users/_tables.html.erb