Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Ryan Drake
Ryan Drake
12,587 Points

Build a Social Network in Rails 4

I'm working my way through the older Rails tutorial on 'Building a Social Network' and attempting to rewrite the tests in rspec and capybara as well as in Rails 4.

My question, however, is to those who might have more rails experience.

Would anyone happen to know how to extend the functionality of this web app to include sending messages to those who are your existing friends?

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

I think the messages will look exactly like statuses, but with two additional user_id and friend_id fields, like friendships. They will only be visible to the user and friend who participate in the exchange. That's how I would do it right now, although I have never implemented such feature.