Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SentulAsia committed Feb 11, 2012
1 parent 4a67d29 commit 5415490
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------
Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion lib/mobile-fu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 5415490

Please sign in to comment.