{"issue":{"title":"Viewing Dashboard after following installation example raises exception","user":{"login":"johnmcdowall","id":237175,"url":"https://api.github.com/users/johnmcdowall","avatar_url":"https://secure.gravatar.com/avatar/493e6c6fc3f24eb73295548cfd136574?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"493e6c6fc3f24eb73295548cfd136574"},"created_at":"2011-12-27T01:06:23Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-27T01:26:40Z","id":2660700,"closed_at":null,"html_url":"https://github.com/paulasmuth/fnordmetric/issues/2","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"ruby -v\r\nruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.7.4]\r\n\r\ngem -v\r\n1.8.11\r\n\r\n    \r\n\r\n    NoMethodError - undefined method `dashboards' for nil:NilClass:\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/fnordmetric-0.5.2/haml/app.haml:26:in `evaluate_source'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/template.rb:209:in `instance_eval'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/template.rb:209:in `evaluate_source'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/template.rb:144:in `cached_evaluate'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/template.rb:127:in `evaluate'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/haml.rb:24:in `evaluate'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:625:in `render'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:522:in `haml'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/fnordmetric-0.5.2/lib/fnordmetric/app.rb:53:in `block in <class:App>'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:1212:in `call'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:1212:in `block in compile!'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `[]'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `block (3 levels) in route!'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:788:in `route_eval'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:772:in `block (2 levels) in route!'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:821:in `block in process_route'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `catch'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:819:in `process_route'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:771:in `block in route!'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `each'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:770:in `route!'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:886:in `dispatch!'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `block in call!'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `block in invoke'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `catch'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:871:in `invoke'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:706:in `call!'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/base.rb:692:in `call'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/rack-protection-1.1.4/lib/rack/protection/path_traversal.rb:16:in `call'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/rack-protection-1.1.4/lib/rack/protection/json_csrf.rb:17:in `call'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/rack-protection-1.1.4/lib/rack/protection/base.rb:47:in `call'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/rack-protection-1.1.4/lib/rack/protection/xss_header.rb:22:in `call'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/nulllogger.rb:9:in `call'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/head.rb:9:in `call'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/sinatra-1.3.1/lib/sinatra/showexceptions.rb:21:in `call'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/connection.rb:84:in `block in pre_process'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/connection.rb:82:in `catch'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/connection.rb:82:in `pre_process'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/connection.rb:57:in `process'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/thin-1.2.11/lib/thin/connection.rb:42:in `receive_data'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/fnordmetric-0.5.2/lib/fnordmetric.rb:43:in `start_em'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/fnordmetric-0.5.2/lib/fnordmetric.rb:94:in `run'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/fnordmetric-0.5.2/lib/fnordmetric/standalone.rb:5:in `block in <top (required)>'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:634:in `call'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:634:in `block in execute'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:629:in `each'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:629:in `execute'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:581:in `invoke'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2019:in `each'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rake.rb:2013:in `top_level'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/fnordmetric-0.5.2/lib/fnordmetric/standalone.rb:31:in `<top (required)>'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'\r\n\t/Users/john/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'\r\n\t/Users/john/.rvm/gems/ruby-1.9.2-p290/gems/fnordmetric-0.5.2/lib/fnordmetric.rb:121:in `standalone'\r\n\ttest.rb:22:in `<main>'","number":2,"url":"https://api.github.com/repos/paulasmuth/fnordmetric/issues/2","comments":2,"assignee":null},"comment":{"user":{"login":"johnmcdowall","id":237175,"url":"https://api.github.com/users/johnmcdowall","avatar_url":"https://secure.gravatar.com/avatar/493e6c6fc3f24eb73295548cfd136574?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"493e6c6fc3f24eb73295548cfd136574"},"created_at":"2011-12-27T01:26:40Z","updated_at":"2011-12-27T01:26:40Z","id":3277959,"body":"Full url is:\r\nhttp://localhost:4242/myapp#Overview\r\n\r\nIt's just the example from the readme:\r\n\r\n```ruby\r\nrequire \"fnordmetric\"\r\n\r\n FnordMetric.namespace :myapp do\r\n\r\n   gauge :unicorns_seen_per_hour, \r\n     :tick => 1.hour.to_i, \r\n     :title => \"Unicorns seenper Hour\"\r\n\r\n   event(:unicorn_seen) do\r\n     incr :unicorns_seen_per_hour \r\n   end\r\n\r\n   widget 'Overview', {\r\n     :title => \"Unicorn-Sightings per Hour\",\r\n     :type => :timeline,\r\n     :gauges => :unicorns_seen_per_hour,\r\n     :autoupdate => 30\r\n   }\r\n\r\n end\r\n\r\n FnordMetric.standalone\r\n```","url":"https://api.github.com/repos/paulasmuth/fnordmetric/issues/comments/3277959"},"action":"created"}