[Git][noosfero/noosfero][master] 2 commits: Use show action with get and post

Rodrigo Souto gitlab at mg.gitlab.com
Mon Sep 11 15:21:29 BRT 2017


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
2dd4e513 by David Carlos at 2017-09-08T21:01:50+00:00
Use show action with get and post

- - - - -
6b89e522 by Rodrigo Souto at 2017-09-11T18:21:15+00:00
Merge branch 'fix_form_answer' into 'master'

Make show action, from the custom_forms_plugin_profile controller, respond to get and post methods.

See merge request !1305
- - - - -


1 changed file:

- plugins/custom_forms/lib/custom_forms_plugin.rb


Changes:

=====================================
plugins/custom_forms/lib/custom_forms_plugin.rb
=====================================
--- a/plugins/custom_forms/lib/custom_forms_plugin.rb
+++ b/plugins/custom_forms/lib/custom_forms_plugin.rb
@@ -18,8 +18,8 @@ class CustomFormsPlugin < Noosfero::Plugin
 
   def self.load_custom_routes
     Noosfero::Application.routes.draw do
-      get "/profile/:profile/query/:id",
-        to: 'custom_forms_plugin_profile#show'
+      match "/profile/:profile/query/:id" => 'custom_forms_plugin_profile#show',
+        via: [:get, :post]
     end
   end
 end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/99480b99f94cc477bc99794cf55087ae5e27aad1...6b89e52262d00be78c5d63df1ad966149a073bd0

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/99480b99f94cc477bc99794cf55087ae5e27aad1...6b89e52262d00be78c5d63df1ad966149a073bd0
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170911/1dc3b454/attachment.html>


More information about the Noosfero-dev mailing list