Skip to content

Commit

Permalink
Merge pull request benlangfeld#10 from rmm5t/patch-1
Browse files Browse the repository at this point in the history
Remove custom mime type configuration from README
  • Loading branch information
benlangfeld committed Feb 12, 2012
2 parents 8104205 + bdc8d2d commit 31c8d54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -25,9 +25,9 @@ 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.

Then add the line below to config/initializers/mime_types.rb

Mime::Type.register_alias "text/html", :mobile
Mobile Fu automatically adds a new `:mobile` 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.

I recommend that you setup a before_filter that will redirect to a specific page
depending on whether or not it is a mobile request. How can you check this?
Expand Down

0 comments on commit 31c8d54

Please sign in to comment.