brendanlim / mobile-fu

Automatically detect mobile requests from mobile devices in your Rails application.
http://www.intridea.com/2008/7/21/mobilize-your-rails-application-with-mobile-fu
MIT License
707 stars 195 forks source link

fallback to html #28

Open fikriauliya opened 12 years ago

fikriauliya commented 12 years ago

Similar problem as this: http://stackoverflow.com/questions/4062518/can-a-mobile-mime-type-fall-back-to-html-in-rails

When .mobile is not found, instead of throwing MissingTemplate exception, should try loading .html first.

olliekyan commented 12 years ago

This would be really helpful rather than having to duplicate views just for mobile when not needed.

jstart commented 12 years ago

+1

jfeldstein commented 12 years ago

Yup, Olliekyan nailed it.

iRonin commented 12 years ago

Any progress on this one?

SentulAsia commented 12 years ago

working on this matter... will push something related to this soon...

jfeldstein commented 12 years ago

Sounds mysterious.... :^P

SentulAsia commented 12 years ago

i wonder if i've taken a code from somebody else repo in github, how would i credit the original author... i'm taking the code from here: https://github.com/cannikin/format_fallback/blob/master/lib/format_fallback.rb and mobile-fu is not my repo... should i ask brendanlim to credit him instead?

mrpollo commented 11 years ago

@SentulAsia Just link on the pull request should suffice

geermc4 commented 11 years ago

PR fixes this giving you the option to define which should be handled as mobile (you should know which dont have a .mobile and it's probably clearer this way too)

benlangfeld commented 10 years ago

This project is abandoned. Please see the active fork at http://github.com/benlangfeld/mobile-fu. Please test with the released gem and master branch of the new home for the project, and file an issue on the other repo if you still have problems.

See #40.

geermc4 commented 10 years ago

:+1: