Skip to content

Commit

Permalink
Fix stupid bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ttencate committed Jan 15, 2012
1 parent a48d732 commit 0b9d322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/blimp/site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def initialize(key, source, options = {})
@router = Router.new(config["handlers"])
end

def handler_for_path(path)
router.handler_for_path(path)
def handlers_for_path(path)
router.handlers_for_path(path)
end

def find_page(path)
Expand Down
2 changes: 1 addition & 1 deletion lib/blimp/web_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class WebServer < Sinatra::Base
get '*' do
handlers = @site.handlers_for_path(request.path_info)
# TODO try them one by one, raise Sinatra::NotFound if all fail
response_headers, response_body = handlers[0].handle(site.source, request.path_info, params)
response_headers, response_body = handlers[0].handle(@site.source, request.path_info, params)

headers response_headers
body response_body
Expand Down

0 comments on commit 0b9d322

Please sign in to comment.