Skip to content

Commit fa927a3

Browse files
committed
Fix rendering
1 parent fc2e309 commit fa927a3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: views/bar.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
= i
88
.col-sm-6.hidden-xs
99
#stats
10-
= haml :stats, locals: { bar: bar }
10+
!= haml :stats, locals: { bar: bar }
1111

1212
:javascript
1313
$('.alert').hide();

Diff for: views/layout.haml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
- bar_names.each do |bar_name|
3434
%option{:value => bar_name}
3535
= bar_name
36-
#content= yield
36+
#content
37+
!= yield
3738
:javascript
3839
$('[name=usebar]').keypress(function(event) {
3940
if (event.which == 13) {

Diff for: web.rb

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
puts "Use SQL database due to ENV '#{ENV['DATABASE_URL']}'"
1414
require 'sinatra/activerecord'
1515
require_relative 'model/hybrid_db'
16-
#set :database, ENV['DATABASE_URL']
1716
set :db => HybridDB.new('datas')
1817
else
1918
puts "Use file due to ENV '#{ENV['DATABASE_URL']}'"

0 commit comments

Comments
 (0)