Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialjessb
3,551 Pointsirb is not recognizing my name as a variable.
treehouse:~/workspace$ irb
irb(main):001:0> name - "Jessica B"
results in
NameError: undefined local variable or method name' for main:Object
from (irb):2
from /usr/local/bin/irb:11:in
<main>'
what is this, why does it keep happening how can I get it to recognize my name?
1 Answer
jessb
3,551 PointsI figured it out, very simple, my screen was too small and I was using a hyphen where I should have been using an equal sign.