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 trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Andrew Ackerman](https://secure.gravatar.com/avatar/7d2830582d267ad5d38197009bb38350?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Andrew Ackerman
8,347 PointsMy code won't return the full-name method.
I feel like I'm putting too much thought into this, but I'm sure I'm following the exact things I learnt in the video. but I keep getting the same problem. Any help would be greatly appreciated!
class Name
attr_accessor :first_name, :last_name
def initialize(first_name, last_name)
@first_name = first_name
@last_name = last_name
end
def full_name
@first_name + "" + @last_name
end
end
name = Name.new("Andrew", "Ackerman")
puts name.full_name
1 Answer
![Ben Reynolds](https://secure.gravatar.com/avatar/a704355d1cdddba1d35e03a282fba2a5?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ben Reynolds
35,170 PointsIn the full_name function, you need to put a space between first name and last name.
Andrew Ackerman
8,347 PointsAndrew Ackerman
8,347 PointsOh my gosh. I've been staring at it for so long with no clue. Thanks for that!