Pluralizations and Singularizations (Inflections) for "Media/Medium" in Rails 5
<p>I'm working with <strong>Rails 5</strong> an I just have created a <code>Media</code> model using scaffold tool.</p>
<pre><code>rails g scaffold media name:string
</code></pre>
<p>And I got different names and routes and view etc...</p>
<p><a href="https://i.stack.imgur.com/9MzER.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9MzER.png" alt="enter image description here" /></a></p>
<p>It was not right pluralising, so when I <code>rake routes</code> I got <code>medium</code> unexpected routes and because of that I got different problems in the views.</p>
<p><a href="https://i.stack.imgur.com/FDPO4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FDPO4.png" alt="enter image description here" /></a></p>
<p>When I try to use <code>&lt;%= form_for @media do ..</code> I got complain about <code>no method media_index_path</code>.</p>
<p>How can I get it fixed and working well?</p>