summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-05-02 15:36:53 +0200
committermr <mr@mrautenberg.de>2011-05-02 15:36:53 +0200
commit03329e15db879c12808e6a10f666a35d86459519 (patch)
treec2c07387f08a5df82ae3e37803a1d046f19ff0ce /application.rb
parent50a53447706ff6eedd56ca9beb136f1acaf5faf1 (diff)
link to excel csv help on upload error
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb
index 99a84c6..e24a76a 100644
--- a/application.rb
+++ b/application.rb
@@ -239,7 +239,7 @@ post '/models' do # create a new model
File.rename(params[:file][:tempfile].path, excel_file) # add extension, spreadsheet does not read files without extensions
@dataset.load_spreadsheet(Excel.new excel_file, subjectid)
if @dataset.metadata[OT.Errors]
- error "Incorrect file format. Please follow the instructions for #{link_to "Excel", "/excel_format"} or #{link_to "CSV", "/csv_format"} formats."
+ error "Incorrect file format. Please follow the instructions for #{link_to "Excel", "/help"} or #{link_to "CSV", "/help"} formats."
end
else
error "#{params[:file][:filename]} has a unsupported file type."