Permalink
Browse files

Updating README

  • Loading branch information...
Brendan G. Lim
Brendan G. Lim committed Aug 23, 2008
1 parent 02c12a8 commit ee49945b593b1c55bf546da1d595a0941d071f94
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.rdoc
View
@@ -18,6 +18,10 @@ 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
+
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?

0 comments on commit ee49945

Please sign in to comment.