<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Miapan</title>
    <description>The latest articles on DEV Community by Miapan (@miapan).</description>
    <link>https://dev.to/miapan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F294381%2F36969e06-f52a-4eec-98a6-1683921392d8.png</url>
      <title>DEV Community: Miapan</title>
      <link>https://dev.to/miapan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/miapan"/>
    <language>en</language>
    <item>
      <title>Order matters  </title>
      <dc:creator>Miapan</dc:creator>
      <pubDate>Mon, 30 Dec 2019 22:14:42 +0000</pubDate>
      <link>https://dev.to/miapan/order-matters-173e</link>
      <guid>https://dev.to/miapan/order-matters-173e</guid>
      <description>&lt;p&gt;In rails routes, Rails routes are matched in the order they are specified.&lt;/p&gt;

&lt;p&gt;For example: &lt;br&gt;
if you have resources:books above a get 'books/top ' the show action's route for the resources line will be matched before the get line. &lt;/p&gt;

&lt;p&gt;To fix it: &lt;br&gt;
move the get line above the resources line so that it is matched first.&lt;/p&gt;

&lt;p&gt;In Model's association, the order of the association does matter.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;&lt;br&gt;
has_many :model should be above has_many :items, through: :model. &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>rails</category>
      <category>ruby</category>
    </item>
  </channel>
</rss>
