No commit activity in last 3 years
No release in over 3 years
Rails fix for Google bot requests
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

RailsFixGoogleBotAccept

This gem fixes the ActionView::MissingTemplate error generated by Rails when a page is requested with the header Accept: */*;q=0.9 (or any other number).

The Google bot does such requests.

Installation

Add this line to your application's Gemfile:

gem 'rails_fix_google_bot_accept'

And then execute:

$ bundle

That's it.

Source

The gem is based on this gist: https://gist.github.com/2590040/93cb2faca1ba5ead73222e74ca11790e3efb22de

It was made by Romain Champourlier as an answer to this question: http://stackoverflow.com/questions/8881756/googlebot-receiving-missing-template-error-for-an-existing-template

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request