vendor/plugins/mobile_fu/lib/mobile_fu.rb
# Add this to one of your controllers to use MobileFu.  
#
#    class ApplicationController < ActionController::Base 
#      has_mobile_fu
#    end
#
# You can also force mobile mode by passing in 'true'
#
#    class ApplicationController < ActionController::Base 
#      has_mobile_fu(true)
#    end
Add this to one of your controllers to use MobileFu.

You can also force mobile mode by passing in 'true'


Add this to one of your controllers to use MobileFu . You can also force mobile mode by passing in ' true '
def has_mobile_fu(test_mode = false)
        include ActionController::MobileFu::InstanceMethods
        if test_mode 
          before_filter :force_mobile_format
        else
          before_filter :set_mobile_format
        end
        helper_method :is_mobile_device?
        helper_method :in_mobile_view?
        helper_method :is_device?
      end
def has_mobile_fu ( test_mode = false ) include ActionController :: MobileFu :: InstanceMethods if test_mode before_filter :force_mobile_format else before_filter :set_mobile_format end helper_method :is_mobile_device? helper_method :in_mobile_view? helper_method :is_device? end
Add this to one of your controllers to use MobileFu.
Add this to one of your controllers to use MobileFu .
test_mode
<not_specific>