Skip to content

Commit

Permalink
Merge pull request benlangfeld#20 from mmlac/master
Browse files Browse the repository at this point in the history
Added info about has_mobile_fu parameter to readme
  • Loading branch information
benlangfeld committed Jul 3, 2012
2 parents 86157bd + dbcf75f commit aefdf7c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ set as :mobile format. It is up to you to determine how you want to handle
these requests. It is also up to you to create the .mobile.erb versions of
your views that are to be requested.

If you do not want to set the format to :mobile or :tablet and only use the
helper functions, pass false as an argument.

class ApplicationController < ActionController::Base
has_mobile_fu(false)
end



Mobile Fu automatically adds a new `:mobile` and `:tablet` to `text/html` mime type
alias for Rails apps. If you already have a custom `:mobile` alias registered in
`config/initializers/mime_types.rb`, you can remove that.
Expand Down

0 comments on commit aefdf7c

Please sign in to comment.