<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Associations on Tim Loughrist</title><link>https://timloughrist.com/category/associations/</link><description>Recent content in Associations on Tim Loughrist</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 26 Jan 2023 16:13:44 +0000</lastBuildDate><atom:link href="https://timloughrist.com/category/associations/index.xml" rel="self" type="application/rss+xml"/><item><title>Friendship associations with rails</title><link>https://timloughrist.com/2023/01/26/friendship-associations-with-rails/</link><pubDate>Thu, 26 Jan 2023 16:13:44 +0000</pubDate><guid>https://timloughrist.com/2023/01/26/friendship-associations-with-rails/</guid><description>&lt;p&gt;Let’s say we’re building an event scheduling application. We want our users to be able to form friendships with one another, create events, and invite friends to those events. Implementing these functions poses some interesting challenges when using Rails and Active Record. In this post I’ll work through those challenges.&lt;/p&gt;&#10;&lt;p&gt;It is worth noting up front that we don’t need to rebuild the wheel here. There are plenty of gems that will allow you to easily implement friendship relationships, including:&lt;/p&gt;</description></item></channel></rss>