/home/vivek/.rvm/gems/ruby-1.9.2-p290/bundler/gems/sugarcrm-252045673069/lib/sugarcrm/session.rb:31:in from_hash': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The error occurred while evaluating nil.[] from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config/initializers/sugarcrm.rb:4:in<top (required)>'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:in load' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:inblock in load'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in block in load_dependency' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:innew_constants_in'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in load_dependency' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:inload'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/engine.rb:201:in block (2 levels) in <class:Engine>' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/engine.rb:200:ineach'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/engine.rb:200:in block in <class:Engine>' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/initializable.rb:25:ininstance_exec'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/initializable.rb:25:in run' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/initializable.rb:50:inblock in run_initializers'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/initializable.rb:49:in each' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/initializable.rb:49:inrun_initializers'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/application.rb:134:in initialize!' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/application.rb:77:inmethod_missing'
from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config/environment.rb:5:in <top (required)>' from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config.ru:3:inrequire'
from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config.ru:3:in block in <main>' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/builder.rb:46:ininstance_eval'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/builder.rb:46:in initialize' from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config.ru:1:innew'
from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config.ru:1:in <main>' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/builder.rb:35:ineval'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/builder.rb:35:in parse_file' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/server.rb:162:inapp'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/server.rb:248:in wrapped_app' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/server.rb:213:instart'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/commands/server.rb:65:in start' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/commands.rb:30:inblock in <top (required)>'
from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/commands.rb:27:in tap' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/commands.rb:27:in<top (required)>'
from script/rails:6:in require' from script/rails:6:in'
/home/vivek/.rvm/gems/ruby-1.9.2-p290/bundler/gems/sugarcrm-252045673069/lib/sugarcrm/session.rb:31:in'
from_hash': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The error occurred while evaluating nil.[] from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config/initializers/sugarcrm.rb:4:in
<top (required)>' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:inload' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:in
block in load' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:inblock in load_dependency' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in
new_constants_in' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:inload_dependency' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:235:in
load' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/engine.rb:201:inblock (2 levels) in <class:Engine>' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/engine.rb:200:in
each' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/engine.rb:200:inblock in <class:Engine>' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/initializable.rb:25:in
instance_exec' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/initializable.rb:25:inrun' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/initializable.rb:50:in
block in run_initializers' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/initializable.rb:49:ineach' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/initializable.rb:49:in
run_initializers' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/application.rb:134:ininitialize!' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/application.rb:77:in
method_missing' from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config/environment.rb:5:in<top (required)>' from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config.ru:3:in
require' from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config.ru:3:inblock in <main>' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/builder.rb:46:in
instance_eval' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/builder.rb:46:ininitialize' from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config.ru:1:in
new' from /home/vivek/Documents/newcrm/sugar_on_rails_basic/config.ru:1:in<main>' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/builder.rb:35:in
eval' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/builder.rb:35:inparse_file' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/server.rb:162:in
app' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/server.rb:248:inwrapped_app' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.2.1/lib/rack/server.rb:213:in
start' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/commands/server.rb:65:instart' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/commands.rb:30:in
block in <top (required)>' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/commands.rb:27:intap' from /home/vivek/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/commands.rb:27:in
<top (required)>' from script/rails:6:inrequire' from script/rails:6:in