Setup Friendly Id's 5 For Rails

Posted By Weston Ganger

<p>Here are the steps to setup FriendlyId's to your current rails app.</p>
<p>First add your gem and bundle install</p>


<p><br />If you find you are having the issue Post not found with 'id'=<em>test</em></p>
<p>In Controller Change:</p>
<p>Post.friendly.find to Post.find</p>
<p>In Model add:</p>
<p>use: [:slugged,:finders]</p>

Article Topic:Software Development - Ruby / Rails

Date:June 18, 2014