No description, website, or topics provided.
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/controllers
config/initializers
lib
rails
test
.gitignore
CHANGELOG.md
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
Rakefile
mobile_views.gemspec

README.md

MobileViews

MobileViews redirects from www.example.com to m.example.com and renders a mobile instead of html files.

Compability

Tested on Rails 3.0.x and Ruby 1.9.2

Installation and Usage

  • Add to your Gemfile:

    gem "mobile_views"

  • Run:

    bundle install

  • Add to your controller

    before_filter :has_mobile_view

  • Create application.mobile.* and accordingly all views e.g. index.mobile.*

  • Restart server if running

Todo

  • Complete tests

License

MIT

Copyright (c) 2011 Patrick Bartels.