Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
defkode committed Jun 1, 2010
1 parent 911e828 commit 2cd61b5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 32 deletions.
6 changes: 2 additions & 4 deletions README.rdoc
Expand Up @@ -18,10 +18,6 @@ And, of course, install the gem:

Done! From now on users with IE version lower than 7.0 will get a nice error message saying that their browsers need to be updated... Ok, ok, not so nice message, you can personalize it by putting an <tt>upgrade.html</tt> file inside the <tt>/public</tt> directory of your application.

<em>- Hey, I need to show localized versions of the message to my french and spanish users!</em>

No problem, just add <tt>upgrade.es.html</tt> and <tt>upgrade.fr.html</tt> to <tt>/public</tt> (Note that <tt>rack.locale</tt> env variable needs to be previously set for this to work. <tt>Rack::Locale</tt> in rack-contrib[http://github.com/rack/rack-contrib] can do that for you)

<em>- Cool!, what about something more dynamic... like ERB?</em>

Granted! You'll have to add to the config which template to use. In <tt>environment.rb</tt>:
Expand Down Expand Up @@ -65,6 +61,8 @@ Enjoy it!

== Contributors

* Tomasz Mazur <defkode@gmail.com>

We're looking forward for your patches. Fork us!

Copyright (c) 2008 BeBanjo, released under the MIT license
1 change: 0 additions & 1 deletion test/public/upgrade.es.html

This file was deleted.

26 changes: 0 additions & 26 deletions test/public/upgrade.html

This file was deleted.

1 change: 0 additions & 1 deletion test/upgrade.erb

This file was deleted.

0 comments on commit 2cd61b5

Please sign in to comment.