From af65435267b86e6a98edf60e46b0cc2a34cfcfe7 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 25 Oct 2011 13:39:48 +0200 Subject: fix help uri with trailing slash --- application.rb | 6 +++--- views/layout.haml | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/application.rb b/application.rb index 6cdfcfb..ef23522 100644 --- a/application.rb +++ b/application.rb @@ -85,7 +85,7 @@ get '/?' do redirect url_for('/create') end -get '/login' do +get '/login/?' do haml :login end @@ -206,11 +206,11 @@ get '/predict/?' do haml :predict end -get '/create' do +get '/create/?' do haml :create end -get '/help' do +get '/help/?' do haml :help end diff --git a/views/layout.haml b/views/layout.haml index 96f7d35..098c529 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -4,15 +4,15 @@ %head %meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=UTF-8'} %title ToxCreate - %script{:type => "text/javascript", :src => "javascripts/jquery.js"} - %script{:type => "text/javascript", :src => "javascripts/toxcreate.js"} - %script{:type => "text/javascript", :src => "javascripts/jquery-ui-progressbar.js"} - %link{:rel=>'stylesheet', :href=>'stylesheets/style.css', :type => "text/css"} - %link{:rel=>'stylesheet', :href=>'progressbar/progressbar.css', :type => "text/css"} + %script{:type => "text/javascript", :src => "#{url_for('/javascripts/jquery.js')}"} + %script{:type => "text/javascript", :src => "#{url_for('/javascripts/toxcreate.js')}"} + %script{:type => "text/javascript", :src => "#{url_for('/javascripts/jquery-ui-progressbar.js')}"} + %link{:rel=>'stylesheet', :href=>"#{url_for('/stylesheets/style.css')}", :type => "text/css"} + %link{:rel=>'stylesheet', :href=>"#{url_for('/progressbar/progressbar.css')}", :type => "text/css"} %body .logo - %img{:src => "ToxCreate_rgb_72.png", :alt => 'ToxCreate', :align => 'right'}/ + %img{:src => "#{url_for('/ToxCreate_rgb_72.png')}", :alt => 'ToxCreate', :align => 'right'}/ %br Creates computational models to predict toxicity .index -- cgit v1.2.3