summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-09-23 10:34:34 +0200
committermr <mr@mrautenberg.de>2011-09-23 10:34:34 +0200
commitfad3229cca5d31670f1c1d99542f3d563e226d99 (patch)
tree79549e5f252358f1a7f5aa260912c7d53becbe1e /application.rb
parent038c4563032f65f935f38ef6bffe426b2dd14c0c (diff)
endpoint selection for create model form
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/application.rb b/application.rb
index 12784f0..3ed2af6 100644
--- a/application.rb
+++ b/application.rb
@@ -232,8 +232,8 @@ end
post '/models' do # create a new model
- unless (params[:dataset] and params[:prediction_feature]) or (params[:file] and params[:file][:tempfile]) #params[:endpoint] and
- flash[:notice] = "Please upload a Excel or CSV file or select an AMBIT dataset."
+ unless (params[:dataset] and params[:prediction_feature]) or (params[:endpoint] and params[:file] and params[:file][:tempfile]) #params[:endpoint] and
+ flash[:notice] = "Please upload a Excel or CSV file and select an endpoint or select an AMBIT dataset."
redirect url_for('/create')
end