summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@ot-dev.in-silico.ch>2011-02-24 11:31:25 +0000
committerroot <root@ot-dev.in-silico.ch>2011-02-24 11:31:25 +0000
commitaad966c8dfd7ccdcf93c5698a8155b00a91c653f (patch)
tree127f7e5b5897c90b6a34e60e88b2f45fe09fa3ef
parentf020b6324e567459cb5ce309371142052782ee86 (diff)
predictions always enabled
-rw-r--r--application.rb2
-rw-r--r--views/predict.haml3
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]}