Module: Homura

Defined in:
lib/homura/mobile_detection.rb,
lib/homura.rb,
lib/homura/engine.rb,
lib/homura/version.rb,
lib/homura/set_locale.rb,
app/helpers/homura/layout_helper.rb,
lib/generators/homura/install/install_generator.rb

Overview

This module will add mobile device detection support.

It makes mobile and desktop to share the same controller, the same url, but different templates.

It will store current status in cookie.

Client may pass mobile=0|1 to any url to modify the cookie.

Server will serve templates in app/mobile_views rather than app/views if requested templates available.

References: erniemiller.org/2011/01/05/mobile-devices-and-rails-maintaining-your-sanity/ johannburkard.de/blog/www/mobile/simple-mobile-phone-detection.html

Defined Under Namespace

Modules: LayoutHelper, MobileDetection, SetLocale Classes: Engine, InstallGenerator

Constant Summary collapse

VERSION =
'0.2.4'