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 Building Social Features in Ruby on Rails Managing Friendships Adding States

adding states 2/2

Call the block_mutual_friendship method after the transition to the blocked state.

```state_machine :state, initial: :pending do

after_transition on: :block, do [:block_mutual_friendship]  

state :requested
state :blocked

end end```

"after_transition on: :block, do [:block_mutual_friendship] is wrong??? i added an ! and that didnt work either! I'm already half lost doing this track.... THIS DAMN CHALLENGE MADE IT WORSE!

NEVERMIND I FOUND THE ANSWER

NEVERMIND I FOUND THE ANSWER