summaryrefslogtreecommitdiff
path: root/views/predict.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-02-16 18:59:13 +0100
committerChristoph Helma <helma@in-silico.de>2010-02-16 18:59:13 +0100
commit13abba6497199238464fa5d7f94931c65de37ba9 (patch)
tree83748c66825f6a26c111fd6d658fbe38349b9155 /views/predict.haml
parent1d8326830fb38e24df2d8f11d8df2f5ad6b5aea8 (diff)
improved error handling of input structures
Diffstat (limited to 'views/predict.haml')
-rw-r--r--views/predict.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/predict.haml b/views/predict.haml
index 5c93e46..8c4317d 100644
--- a/views/predict.haml
+++ b/views/predict.haml
@@ -15,7 +15,8 @@
- yaml = RestClient.get model, :accept => 'application/x-yaml'
- yaml = YAML.load yaml
%label{:for => model}
- = yaml[:endpoint].split(/#/).last.gsub(/_/,' ')
+ = URI.decode yaml[:endpoint].split(/#/).last
+ =# link_to RestClient.get(File.join(model,'name')).to_s, "/model?uri=#{URI.encode model}"
%input{:type => 'checkbox', :name => "selection[#{model}]", :value => true, :id => model}
%br