0.0
No commit activity in last 3 years
No release in over 3 years
'Unsupported browser' warning to IE users with Chrome Frame install link, for Rails (>= 3.1)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

BadBrowser

'Unsupported browser' warning to IE users with Chrome Frame install link.

This is the warning that will be displayed

Requirements

  • Rails >= 3.1
  • jquery-rails

Installation

Add this line to your application's Gemfile:

gem 'bad_browser'

After running bundle use the generator bad_browser:install. This will add the line //= require bad_browser to application.js.

Usage

Call bad_browser_include_tag in your application's main layout.

<%= bad_browser_include_tag :ie_supported => 9 %>

This will include the necessary javascript to warn users of Internet Explorer older than the version specified. Default is IE9.

Contributing

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

To-Do

  • add option to pass :none in place of an IE version to display the warning to all IE users

Changelog

0.0.2 - 2012/04/13

  • Correct dependencies
  • Use a more correct method to extend Rails::Engine

0.0.1 - 2012/04/12

  • initial release of gem