diff options
-rw-r--r-- | application.rb | 2 | ||||
-rw-r--r-- | views/predict.haml | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/application.rb b/application.rb index a892c03..88763d9 100644 --- a/application.rb +++ b/application.rb @@ -14,6 +14,8 @@ use Rack::Session::Cookie, :expire_after => 28800, :secret => "ui6vaiNi-change_me" use Rack::Flash +set :lock, true + helpers do def error(message) diff --git a/views/predict.haml b/views/predict.haml index b6e1088..347592c 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -26,7 +26,8 @@ - @models.each do |model| %label{:for => model.id} = model.name - %input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => model.id, :disabled => !is_authorized(model.uri, "GET")} + -#%input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => model.id, :disabled => !is_authorized(model.uri, "GET")} + %input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => model.id, :disabled => false} %br %input{:type => 'hidden', :name => 'subjectid', :id => 'subjectid', :value => session[:subjectid]} |