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
Ryan Drake12,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?
Maciej Czuchnowski36,441 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.