Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated readme

  • Loading branch information...
commit 5415490e313224a078f625c3976a5e7d24b849b7 1 parent 4a67d29
@SentulAsia SentulAsia authored
Showing with 5 additions and 2 deletions.
  1. +4 −1 README.md
  2. +1 −1  lib/mobile-fu.rb
View
5 README.md
@@ -4,7 +4,7 @@ Mobile Fu
Want to automatically detect mobile devices that access your Rails application?
Mobile Fu allows you to do just that. People can access your site from a Palm,
Blackberry, iPhone, iPad, Nokia, etc. and it will automatically adjust the format
-of the request from :html to :mobile.
+of the request from :html to :mobile or :tablet.
Installation
------------
@@ -50,6 +50,9 @@ in a custom controller action.
session[:mobile_view] # => Set to true if request format is :mobile and false
if set to :html
+ session[:tablet_view] # => Set to true if request format is :tablet and false
+ if set to :html
+
So, different devices need different styling. Don't worry, we've got this
baked in to Mobile Fu.
View
2  lib/mobile-fu.rb
@@ -97,7 +97,7 @@ def force_mobile_format
session[:mobile_view] = true if session[:mobile_view].nil?
end
end
-
+
# Forces the request format to be :tablet
def force_tablet_format
unless request.xhr?
Please sign in to comment.
Something went wrong with that request. Please try again.