How to Generate SEO Friendly URL in Rails 3.x by Jay December 24, 2012 < 1 Minute ReadSEO friendly URLs are more important to make a page popular & search engines to crawl. FriendlyId is the slugging and permalink plug-in for Ruby on Rails. It allows you to create pretty URLs and work with human-friendly strings. The URLs created by slug are very useful for SEO. It is designed for generation of URL slug and history maintenance. Steps to create Pretty URLs: Step#1 Include gem in your Gem file: gem 'friendly_id' Then run bundle install. Step#2 Modify your model on which you want the pretty URL: extend FriendlyId friendly_id :title, use: :slugged Step#3 Add the slug column in your migration file to add it on the table add_column :articles, :slug, :string Then run rake db:migrate Now if you create an article with Title like “This is a demo title for testing”, it will create a SEO friendly URL like “this-is-a-demo-title-for-testing” and will save into the articles table under slug column. SummaryArticle NameHow to Generate SEO Friendly URL in Rails 3.xDescriptionFriendlyId is the slugging and permalink plug-in for Ruby on Rails. It allows you to create pretty URLs and work with human-friendly strings.Author Jay Publisher Name Andolasoft Related Posts: Usage of PDFKit with Rails 3.2.8 and Ruby 1.9.3 How to Implement Event Calendar in Rails App How to generate Barcode using Barby Gem in Rails 2.3.8 Tags: Rails, RoR, Ruby on Rails, Ruby on Rails Application, ruby on rails development, ruby rails, SEO, SEO Friendly Jayadev Das email@example.com Do what you do best in – that’s what I’ve always believed in and that’s what I preach. Over the past 25+ years (yup that’s my expertise ‘n’ experience in the Information Technology domain), I’ve been consulting to small, medium and large companies ‘bout Web Technologies, Mobile Future as well as on the good-and-bad of tech. Blogger, International Business Advisor, Web Technology Expert, Sales Guru, Startup Mentor, Insurance Sales Portal Expert & a Tennis Player. And top of all – a complete family man!