www.SmarteGuru.com
  Home  |  Blogs  |  Find a Friend  |  Discussion Board  |  Resources   |  Developers Area  |  Gallery  |   Login  |  Register Now 

SEO friendly title tag plugin in ruby on rails

There is very useful plugin for Ruby on Rails applications. It is designed with SEO in mind, and it makes keeping your meta title tags, and your <h1> tags in sync easy.

The plugin is hosted at http://github.com/DefV/title_helper/tree/master

Here’s how it works.

In your application layout you call the plugin, passing in your overall site title.

<title><%= title :site_name => "The SEO on Rails Blog" %></title>

If you do nothing else, all pages on your site will have the title “Seo on Rails”.
In your view templates, say app/views/blogpost/view.html.erb you could have this:

<%= title "SEO plugins for Ruby on Rails" %>

This will print out a H1 tag:

<h1>SEO plugins for Ruby on Rails</h1>

At the same time, the plugin will remember the title and insert it into the layout’s <title> tag before your :site_name. In our example that would result in :

<tiitle>SEO plugins for Ruby on Rails - The SEO on Rails Blog</title>

Keeping your <H1> tags and your <title> tags in sync is a good thing, and this plugin helps make it very easy.

Social Bookmarks: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Webnews
  • Y!GG
  • Google Bookmarks
  • SEOigg
  • YahooMyWeb
  • Live-MSN
  • DZone
  • Facebook
  • Technorati
  • Ask
  • Furl
  • Spurl
  • Webbrille

Related Posts

Tags: , , ,

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Viewed: 150 views

Leave a Reply

Home - About Us - Help - Terms and Conditions - Site Map - Link to Us - Resources - Contact Us
Google Rank Calculator | Suggest developer resource | Suggest Article
All rights reserved © 2007 SmarteGuru.com.