Skip to content

Instantly share code, notes, and snippets.

@chef
Created August 8, 2009 18:15
Show Gist options
  • Save chef/164468 to your computer and use it in GitHub Desktop.
Save chef/164468 to your computer and use it in GitHub Desktop.
irb(main):024:0> c.node[:languages][:ruby][:version]
=> "1.8.6"
irb(main):025:0> "baby " + c.node[:languages][:ruby][:version]
=> "baby 1.8.6"
irb(main):026:0> "baby " + c.node[:languages][:ruby]
TypeError: can't convert Chef::Node::Attribute into String
from (irb):26:in `+'
from (irb):26
from :0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment