[logaling-commit] logaling/logaling-server [github-project-related-to-user] Leave the decision of HTTP method to @user_config

Back to archive index

SHIMADA Koji null+****@clear*****
Tue Sep 25 19:24:36 JST 2012


SHIMADA Koji	2012-09-25 19:24:36 +0900 (Tue, 25 Sep 2012)

  New Revision: 945cd8d9be2b0cee8a6e361b748fec94da514dfb
  https://github.com/logaling/logaling-server/commit/945cd8d9be2b0cee8a6e361b748fec94da514dfb

  Merged 971b851: Merge pull request #14 from logaling/prioritize-the-search

  Log:
    Leave the decision of HTTP method to @user_config

  Modified files:
    app/views/dashboard/show.html.haml

  Modified: app/views/dashboard/show.html.haml (+2 -2)
===================================================================
--- app/views/dashboard/show.html.haml    2012-09-25 19:19:08 +0900 (49e86fc)
+++ app/views/dashboard/show.html.haml    2012-09-25 19:24:36 +0900 (20498c3)
@@ -11,13 +11,13 @@
           = user_glossary.target_language
           = link_to "Show", user_glossary_path(current_user, user_glossary)
           - if @user_config.new_record?
-            = form_for @user_config, url: user_configs_path(current_user), method: :post do |f|
+            = form_for @user_config, url: user_configs_path(current_user) do |f|
               = hidden_field :user_config, :glossary_name, value: user_glossary.glossary_name
               = hidden_field :user_config, :source_language, value: user_glossary.source_language
               = hidden_field :user_config, :target_language, value: user_glossary.target_language
               = f.submit mark, :class => 'btn btn-link'
           - else
-            = form_for @user_config, url: user_config_path(current_user, @user_config), method: :put do |f|
+            = form_for @user_config, url: user_config_path(current_user, @user_config) do |f|
               = hidden_field :user_config, :glossary_name, value: user_glossary.glossary_name
               = hidden_field :user_config, :source_language, value: user_glossary.source_language
               = hidden_field :user_config, :target_language, value: user_glossary.target_language
-------------- next part --------------
An HTML attachment was scrubbed...
Descargar 



More information about the logaling-commit mailing list
Back to archive index