README in aaalex-detect_mobiles-0.0.3 vs README in aaalex-detect_mobiles-0.0.4

- old
+ new

@@ -9,13 +9,16 @@ request.format to either :mobile or :iphone. This can be used in the responds_to block and in the views. Usage Example ============= -install the gem -add the gem to your config/environment.rb +* install the gem +* add the MIME types to config/initializers/mime_types.rb +Mime::Type.register_alias "text/html", :iphone +Mime::Type.register_alias "text/html", :mobile +* add the gem to your config/environment.rb -> config.gem "detect_mobiles" -add the before_filter to your controller +* add the before_filter to your controller class ApplicationController < ActionController::Base before_filter :detect_mobiles end