Permalink
Browse files

minor changes

  • Loading branch information...
1 parent 74ad43b commit cd27dcfc9e095782a91226b08dabd089816d705f marc-an-be committed Aug 8, 2012
Showing with 6 additions and 4 deletions.
  1. +3 −1 README.md
  2. +3 −3 pilltracker.rb
View
@@ -1,4 +1,6 @@
tiny_sinatra_jquery_mobile_app
==============================
-Tiny Sinatra jQuery Mobile App
+Tiny Sinatra jQuery Mobile App
+
+Code for an [article on Rubysource.com](http://rubysource.com)
View
@@ -62,16 +62,16 @@ class Event
@@ index
%ul.ui-listview{:data => {:role => 'listview', :theme => 'b'}}
%li{:data => {:theme => 'a'}}
- %a{href:'/new'} New
+ %a{href:'/new/'} New
- @events.each do |event|
%li
%img{:style => 'float:left;margin:1em;',
- :src => event.type == 'took' ? 'pill.png' : 'stethoscope.png'}
+ :src => event.type == 'took' ? 'pills.png' : 'stethoscope.png'}
%div&= event.time.strftime("%Y-%m-%d %H:%M")
%div&= "#{event.type}: #{event.description}"
@@ new
-%form{:action => '/new', :method => 'post'}
+%form{:action => '/new/', :method => 'post'}
%p
%label{:for => 'event'} Event
%p

0 comments on commit cd27dcf

Please sign in to comment.