0.0
No commit activity in last 3 years
No release in over 3 years
Render mobile browser versions of your views in Rails with zero-configuration.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 3.0.3

Runtime

>= 0.1.3
>= 3.0.3
 Project Readme

Mobile Version¶ ↑

Render your alternate mobile browser versions of your views in Rails with zero-configuration.¶ ↑

With Mobile Version your alternate layout for mobile browsers will be rendered in Rails with zero-configuration.

Download and installation¶ ↑

The latest version of Mobile Version can be installed with Rubygems:

% [sudo] gem install mobile_version

Include the gem in your Gemfile:

gem 'mobile_version'

Source code can be downloaded from Github:

* http://github.com/dunkelbraun/mobile_version

Usage¶ ↑

Whenever you want to render an alternate view for mobile browsers, create a template with the extension .mobilehtml.

For example: the mobile version template for the index action is

index.mobilehtml.erb

Mobile browser specific Layouts also need have the extension .mobilehtml

Rails will render the mobile view for all the incoming mobile browser HTML requests and it will fallback to the default HTML view if it does not find a mobile version for the requested action.

License¶ ↑

Mobile Version is released under the MIT license.