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

Testing the Statuses Controller Error

I am guessing this has something to do with the versions of the GEMs I am using. In the video When they get the error for still having references to :name in statuses_contraller_test.rb I am getting the same errors, but code is diffrent.

I have test "should update status" do put :update, id: @status, status: @status.attributes assert_redirected_to status_path(assigns(:status))

I would imagine that @status.attributes references the :name, but I have no idea where to find / change them.

ps: why no search function for the forums?

1 Answer

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Can you send a screenshot of the error? I'm not sure I understand the problem here :(