Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug where dates don't appear

  • Loading branch information...
commit 3a57d262a927c09f39c4e60e3ec85a5786e86e28 1 parent e3ddd83
Andrew Nicolaou authored
3  Gemfile
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
14 Gemfile.lock
View
@@ -2,11 +2,20 @@ 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)
@@ -14,6 +23,9 @@ GEM
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
7 app/frontend.rb
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
2  config.ru
View
@@ -1,6 +1,6 @@
require 'rubygems'
require 'bundler'
-Bundler.setup
+Bundler.require
require 'services'
require 'app/frontend'
4 layout/views/post_list.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.