Fixes difficulty level form

This commit is contained in:
Chrisbr 2014-04-28 19:40:07 +02:00
parent 6886b121ae
commit fc11653f27
2 changed files with 3 additions and 3 deletions

View file

@ -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"}

View file

@ -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