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

Ruby Ruby Objects and Classes Variables and Methods Attribute Writers and Accessors

Getting the "task 1 no longer passing error" but I can't see where the problem is.

what's wrong with my task 1?

name.rb
class Name
  attr_reader :title
  attr_writer :first_name
  attr_accesssor :last_name

  def initialize(title, first_name, middle_name, last_name)
    @title = title
    @first_name = first_name
    @middle_name = middle_name
    @last_name = last_name
  end
end

1 Answer

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

Looks like there's a typo in your spelling of the word attr_accesssor, there's triple s there.

thanks you ,it worked