diff --git a/app/views/admin/difficulty_levels/index.html.haml b/app/views/admin/difficulty_levels/index.html.haml index 2da43293..8f8e3d29 100644 --- a/app/views/admin/difficulty_levels/index.html.haml +++ b/app/views/admin/difficulty_levels/index.html.haml @@ -2,7 +2,7 @@ .col-md-3 = render 'admin/conference/sidebar' .col-md-9 - = semantic_form_for(@conference, :url => admin_conference_difficulty_levels_path(@conference.short_title)) do |f| + = semantic_form_for @conference, :url => admin_conference_difficulty_level_path(:conference_id => @conference.short_title, :id => @conference.difficulty_levels) do |f| = f.input :use_difficulty_levels, :label => false = dynamic_association :difficulty_levels, "Difficulty_Levels", f = f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"} diff --git a/config/routes.rb b/config/routes.rb index ccc0a49b..6c296a69 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -38,8 +38,8 @@ Osem::Application.routes.draw do post "/cfp" => "callforpapers#create", :as => "cfp_create" get "/event_types" => "eventtype#show", :as => "eventtype_list" put "/event_types" => "eventtype#update", :as => "eventtype_update" - put "/difficulty_levels" => "difficulty_levels#update" - resources :difficulty_levels + #put "/difficulty_levels" => "difficulty_levels#update" + resources :difficulty_levels, :only => [ :show, :update, :index ] put "/questions/update_conference" => "questions#update_conference" resources :questions resources :events do