20

Can anyone recommend some RoR plugins and/or general sage that will help me with SEO?

jjnguy
  • 136,852
  • 53
  • 295
  • 323
Gargamel
  • 201
  • 2
  • 4
  • SEO could mean a lot of different things, what general area of information are you looking for? – corprew Mar 31 '10 at 21:58
  • Primarily tagging the HTML and other parts of the code. I know H1, H2, etc. and the basics. Are there special tags for user generated content like reviews? – Gargamel Apr 01 '10 at 00:18

4 Answers4

13

I myself was searching for some guide on SEO for ruby on rails, surprisingly there was no updated/recent article on the web (this post ranks #1 in google and this is also 3 years old) as that link seoonrails is dead and other articles are written in 2010 so I went ahead and wrote a complete SEO for rails guide http://www.inboundio.com/blog/seo-for-ruby-on-rails-complete-guide/. It took me 3 days to write it (including the infographic) and I have tried to link back to railscasts and other sources where ever possible to make it more helpful.

To answer OPs questions, following gems can be used as starting point -

  1. Friendly ID - https://github.com/FriendlyId/friendly_id
  2. Meta Tags - https://github.com/kpumuk/meta-tags
  3. MetaMagic - https://github.com/lassebunk/metamagic
  4. Sitemap - http://rubygems.org/gems/sitemap or http://rubygems.org/gems/xml-sitemap
  5. Breadcrumbs - https://github.com/lassebunk/gretel

You can further refine your rails app with following gems

  1. Rack cache (for caching) - http://rubygems.org/gems/rack-cache
  2. GeoCoder (for geotargeting) - https://github.com/alexreisner/geocoder
  3. Geokit (for geotargeting) - https://github.com/geokit/geokit
  4. Mobile fu (for better Mobile Optimization) - https://github.com/brendanlim/mobile-fu
Arun Kumar Mohan
  • 11,517
  • 3
  • 23
  • 44
Pushkar Gaikwad
  • 155
  • 2
  • 9
7

SEO is a field by itself. But for a rails app you could use the following gems to make you site more search engine friendly.

Finally all these and a small description on how to use them could be found on this blog post http://lassebunk.dk/2011/03/09/rails-seo-pack/ by Lasse Bunk

thekindofme
  • 3,846
  • 26
  • 29
4

Sorry to resurrect such an old question, but it's been on my mind too, I'll share what I came up with.

As you probably know, SEO is pretty blurry in general. But these are a few of the core things that I've discovered from my reading. But I'm no SEO whiz.

  1. A good strong name. Every page's title attribute should somehow be titled for its content specifically. It's also not a bad idea to ensure that it has near 60 characters. As far as getting the title to change depending up on the page, you could do something like this: http://railscasts.com/episodes/30-pretty-page-title (the railscast is a bit dated, maybe there's a newer way to get this done?) Rails 3 - Ideal way to set title of pages (I kind of like the look of this one.)

  2. Create a robots.txt file You just throw it in your public folder with something like this, assuming you want all of your pages indexed:

    User-agent: *
    Disallow:
    
  3. Create a Sitemap and submit it to Google Web Developer Tools I just checked this one out, and it did what I wanted. https://github.com/kjvarga/sitemap_generator

  4. You might look at rails powered meta tags using the following gem, though, I've not used it: https://github.com/parndt/seo_meta

And, I think that really wraps it up for rails specific things. There are so many other SEO resources out there, and so many of them are just things that you manipulate the view to accomplish, so they're not really rails questions at that point.

A few other things to think about as well, but they're not really rails specific, and mostly in your views.

  • Make sure your code is W3C valid
  • Title attributes for image tags.
  • Using header tags appropriately.
  • Don't put text in images, that's what text is for. If you want to use a pretty font, use google fonts.
  • Make sure you have outbound links to resources that make sense for the context of your page.
  • Create a printable stylesheet.
Community
  • 1
  • 1
counterbeing
  • 2,721
  • 2
  • 27
  • 47
  • 1
    Nice. The `alt` attribute is much more important for SEO than the `title`attribute of an image, though. You might want to add that to your list. – Tintin81 Jun 20 '14 at 10:02
-4

I believe the most important ingredients to SEO are:

  1. good content and
  2. good inbound links.

None of these can be achieved using any plugin.

See also SEO: Where do I start?

Community
  • 1
  • 1
Jørn Schou-Rode
  • 37,718
  • 15
  • 88
  • 122
  • Thanks, I was hoping there was something out there that could help with dynamic SEO and automate some off-page techniques. – Gargamel Mar 31 '10 at 21:12