I run the following rackup command and go to visit localhost:9292/index.html to see the examples but there is no graph picture ,Something wrong happened !
It seems to be the null object error.
yangke@ubuntu:~/Program/D3/d3_js_network-master$ rackup
[2014-02-15 05:52:51] INFO WEBrick 1.3.1
[2014-02-15 05:52:51] INFO ruby 2.1.0 (2013-12-25) [i686-linux]
[2014-02-15 05:52:51] INFO WEBrick::HTTPServer#start: pid=14194 port=9292
127.0.0.1 - - [15/Feb/2014 05:53:16] "GET /favicon.ico HTTP/1.1" 404 447 0.0034
NoMethodError - undefined method []' for nil:NilClass: /home/yangke/Program/D3/d3_js_network-master/network.rb:37:infollower_matrix'
/home/yangke/Program/D3/d3_js_network-master/network.rb:54:in block in <top (required)>' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:incall'
/home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in block in compile!' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in[]'
/home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in block (3 levels) in route!' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:inroute_eval'
/home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in block (2 levels) in route!' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:inblock in process_route'
I run the following
rackup
command and go to visit localhost:9292/index.html to see the examples but there is no graph picture ,Something wrong happened ! It seems to be the null object error. yangke@ubuntu:~/Program/D3/d3_js_network-master$ rackup [2014-02-15 05:52:51] INFO WEBrick 1.3.1 [2014-02-15 05:52:51] INFO ruby 2.1.0 (2013-12-25) [i686-linux] [2014-02-15 05:52:51] INFO WEBrick::HTTPServer#start: pid=14194 port=9292 127.0.0.1 - - [15/Feb/2014 05:53:16] "GET /favicon.ico HTTP/1.1" 404 447 0.0034 NoMethodError - undefined method[]' for nil:NilClass: /home/yangke/Program/D3/d3_js_network-master/network.rb:37:in
follower_matrix' /home/yangke/Program/D3/d3_js_network-master/network.rb:54:inblock in <top (required)>' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in
call' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:inblock in compile!' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in
[]' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:inblock (3 levels) in route!' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in
route_eval' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:inblock (2 levels) in route!' /home/yangke/.rvm/gems/ruby-2.1.0/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in
block in process_route'