Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyone got SEO tips for Ruby on Rails [closed]

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

like image 872
Gargamel Avatar asked Mar 31 '10 20:03

Gargamel


People also ask

Is Ruby on Rails SEO friendly?

To conclude, Ruby On Rails being a very flexible fast development framework, it is quite easy to set up all kinds of recommendations for SEO.

Is Ruby on Rails still relevant 2022?

Ruby's and Ruby on Rails' Overall Popularity Although way behind main contenders, such as PHP or Python, Ruby still makes the cut for the 20 most popular programming languages list in 2022. The 2022 edition of Stack Overflow Annual Developer Survey also places RoR in a similar spot.

Does anybody still use Ruby on Rails?

Many large companies (Imgur, Github, Twitch.tv, and others) still use RoR for their apps. The foundation for a future for the Ruby on Rails framework has been set. As long as RoR's features and functionality are among the best, well-known companies will continue using it in development.

Is Twitter still using Ruby on Rails?

Twitter Said To Be Abandoning Ruby on Rails.


3 Answers

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
like image 188
Pushkar Gaikwad Avatar answered Sep 22 '22 13:09

Pushkar Gaikwad


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.

  • Metamagic http://github.com/lassebunk/metamagic
  • Headliner https://github.com/mokolabs/headliner
  • Gretel for breadcrumbs http://github.com/lassebunk/gretel
  • FriendlyID for SEO friendly urls http://github.com/norman/friendly_id
  • DynamicSitemaps for generating stiemaps http://github.com/lassebunk/dynamic_sitemaps

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

like image 29
thekindofme Avatar answered Sep 25 '22 13:09

thekindofme


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.
like image 44
counterbeing Avatar answered Sep 22 '22 13:09

counterbeing