Permalink
Browse files

Fix bug where dates don't appear

  • Loading branch information...
1 parent e3ddd83 commit 3a57d262a927c09f39c4e60e3ec85a5786e86e28 @andrewn committed Sep 4, 2011
Showing with 22 additions and 8 deletions.
  1. +2 −1 Gemfile
  2. +14 −0 Gemfile.lock
  3. +3 −4 app/frontend.rb
  4. +1 −1 config.ru
  5. +2 −2 layout/views/post_list.rb
View
@@ -9,4 +9,5 @@ gem 'RedCloth'
gem 'json'
gem 'htmlentities'
gem 'unicode'
-gem 'sinatra-reloader', :group => :development
+gem 'sinatra-reloader', :group => :development
+gem 'heroku', :group => :development
View
@@ -2,18 +2,30 @@ GEM
remote: http://rubygems.org/
specs:
RedCloth (4.2.7)
+ addressable (2.2.6)
backports (2.3.0)
bluecloth (2.1.0)
+ heroku (2.6.1)
+ launchy (>= 0.3.2)
+ rest-client (~> 1.6.1)
+ rubyzip
+ term-ansicolor (~> 1.0.5)
hpricot (0.8.4)
htmlentities (4.3.0)
json (1.5.1)
+ launchy (2.0.5)
+ addressable (~> 2.2.6)
+ mime-types (1.16)
monkey-lib (0.5.4)
backports
mustache (0.99.3)
rack (1.2.2)
rack-bug (0.3.0)
rack (>= 1.0)
rack-rewrite (1.0.2)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ rubyzip (0.9.4)
sinatra (1.2.2)
rack (~> 1.1)
tilt (>= 1.2.2, < 2.0)
@@ -27,6 +39,7 @@ GEM
sinatra-sugar (0.5.1)
monkey-lib (~> 0.5.0)
sinatra (~> 1.0)
+ term-ansicolor (1.0.6)
tilt (1.2.2)
unicode (0.4.0)
@@ -36,6 +49,7 @@ PLATFORMS
DEPENDENCIES
RedCloth
bluecloth
+ heroku
hpricot
htmlentities
json
View
@@ -151,12 +151,11 @@ class Frontend < Sinatra::Base
mustache :index
end
- # TODO: [R 301] -> /projects/all
get '/posts' do
@show_intro = false
- @posts = AndrewNicolaou::Models::Post.find_all
- puts "Found #{@posts.length} posts"
- p @posts
+ @post_list = AndrewNicolaou::Models::Post.find_all
+ puts "Found #{@post_list.length} posts"
+ p @post_list
mustache :post_list
end
View
@@ -1,6 +1,6 @@
require 'rubygems'
require 'bundler'
-Bundler.setup
+Bundler.require
require 'services'
require 'app/frontend'
@@ -9,8 +9,8 @@ def initialize
puts "Initializing PostList"
end
def posts
- puts "PostList #{@posts.length}"
- @posts.map do |post|
+ puts "PostList #{@post_list.length}"
+ @post_list.map do |post|
puts "List #{post}"
Post.new(post)
end

0 comments on commit 3a57d26

Please sign in to comment.