From 4a8c2173d4aef9b7efa72e3d1c7e838d1df91953 Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Mon, 14 Jul 2014 18:04:58 +0300 Subject: [PATCH] remove put method --- app/views/admin/questions/index.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/questions/index.html.haml b/app/views/admin/questions/index.html.haml index decc6b41..3e357b36 100644 --- a/app/views/admin/questions/index.html.haml +++ b/app/views/admin/questions/index.html.haml @@ -5,10 +5,10 @@ %br %br - if @questions.count > 0 - = semantic_form_for(@conference, :url => admin_conference_questions_update_conference_path(@conference.short_title), :method => 'put') do |f| + = semantic_form_for(@conference, :url => admin_conference_questions_update_conference_path(@conference.short_title)) do |f| .questions{:id => "myquestions"} = render :partial => "questions" - = f.submit "Update Questions for #{@conference.short_title}", :class => "btn btn-primary", :confirm => "Are you sure you want to make these changes?" + = f.submit "Update Questions for #{@conference.short_title}", :class => "btn btn-primary", :confirm => "Are you sure you want to make these changes?" .modal.fade{:id => "new-question", "role" => "dialog", "aria-hidden" => "true"}