This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError: undefined method `+' for nil:NilClass | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/net/http.rb:1404:in `addr_port' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/net/http.rb:1339:in `begin_transport' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/net/http.rb:1315:in `transport_request' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/net/http.rb:1293:in `request' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/net/http.rb:1286:in `block in request' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/net/http.rb:745:in `start' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/net/http.rb:1284:in `request' | |
from /Users/sarsena/.rvm/gems/ruby-1.9.3-p362/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:80:in `perform_request' | |
from /Users/sarsena/.rvm/gems/ruby-1.9.3-p362/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:39:in `call' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArgumentError: wrong number of arguments (2 for 1) | |
from /Users/sarsena/.rvm/gems/ruby-1.9.3-p362/gems/arel-3.0.3/lib/arel/expressions.rb:3:in `count' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:225:in `binary?' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:234:in `visit_String' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:103:in `accept' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:135:in `block in visit_Struct' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:133:in `each' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:133:in `visit_Struct' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb:103:in `accept' | |
from /Users/sarsena/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Response < ActiveRecord::Base | |
def phase2? | |
if self == "yes" | |
"Nah, Im Good" | |
elsif self =="no" | |
"Nah I only want to work for Phase2" | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'incontact_api' | |
require 'awesome_print' | |
ENV['UCN_URL'] = 'https://api.incontact.com' | |
ENV['UCN_KEY'] = '' | |
ENV['GRANT_TYPE'] = 'password' | |
ENV['USERNAME'] = '' | |
ENV['PASSWORD'] = '' | |
ENV['SCOPE'] = 'Admin Chat RealTime' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
:javascript | |
var rubyArray = #{$num_array}; | |
var titleArray = #{$title_array}; | |
%script(src="../js/graph/graph.js") | |
.graph-container | |
%p This is where the graph will go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%html | |
%head | |
%title Raphael Graph | |
%link(rel="stylesheet" href="/css/bootstrap.min.css") | |
%link(rel="stylesheet" href="/css/graph/global.css") | |
%script(src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js") | |
%script(src="../js/raphael-min.js") | |
%script(src="../js/g.raphael-min.js") | |
%script(src="../js/g.bar-min.js") |