Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Formatting, Formatting, Formatting

  • Loading branch information...
commit 0922c8e82c3efcc6f3e2f1d112e18a3fbfe922db 1 parent 2edab71
Luismi Cavallé cavalle authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 README.rdoc
6 README.rdoc
View
@@ -1,9 +1,7 @@
= Rack::UserAgent
== Use
-Let's say you don't support IE6 and want to prevent IE6 users from accessing to your Rails app.
-
-You're in luck. Just add this to your <tt>environment.rb</tt> file
+Let's say you don't support IE6 and want to prevent IE6 users from accessing to your Rails app. You're in luck. Just add this to your <tt>environment.rb</tt> file
config.gem "bebanjo-rack-useragent", :lib => "rack/user_agent", :source => "http://gems.github.com"
@@ -33,7 +31,7 @@ Then you could show the browser version as part of your message:
Sorry but <%= "#{@browser.browser} #{@browser.version}" %> is not supported
--- Can I use it with non-Rails Rack frameworks, like Sinatra?
+<em>- Can I use it with non-Rails Rack frameworks, like Sinatra?</em>
Sure. You only have to take into account that you'll always have to set which template to use. i.e: In <tt>config.ru</tt>:
Please sign in to comment.
Something went wrong with that request. Please try again.