From fad3229cca5d31670f1c1d99542f3d563e226d99 Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 23 Sep 2011 10:34:34 +0200 Subject: endpoint selection for create model form --- application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'application.rb') 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 -- cgit v1.2.3