michaeldv/awesome_print — Issue #57: printing ActiveRecord object issue
Author: konstantin-dzreyev
Created: 2011-10-28 22:42:25+00:00
State: open

Hi,

It seems there is an error with printing ActiveRecord objects (rails 2.3.5):

ArgumentError: wrong number of arguments (1 for 0)
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:42:in `red'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:42:in `send'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:42:in `colorize'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:53:in `awesome_self'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:26:in `format'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:97:in `unnested'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:64:in `awesome'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:98:in `awesome_hash'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:286:in `indented'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:97:in `awesome_hash'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:96:in `map'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:96:in `awesome_hash'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:25:in `send'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:25:in `format'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:97:in `unnested'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:64:in `awesome'
... 5 levels...
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:52:in `awesome_self'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:26:in `format'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:97:in `unnested'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:64:in `awesome'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:140:in `awesome_object'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:286:in `indented'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:139:in `awesome_object'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:130:in `map'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:130:in `awesome_object'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:52:in `awesome_self'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/formatter.rb:26:in `format'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:97:in `unnested'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/inspector.rb:64:in `awesome'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/core_ext/kernel.rb:10:in `ai'
from /home/konstantin/.rightscale_bundle/right_site/ruby/1.8/bundler/gems/awesome_print-2e75a163874a/lib/awesome_print/core_ext/kernel.rb:15:in `ap'