fallback to html
fikriauliya opened this issue · 11 comments
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.
This would be really helpful rather than having to duplicate views just for mobile when not needed.
+1
Yup, Olliekyan nailed it.
Any progress on this one?
working on this matter... will push something related to this soon...
Sounds mysterious.... :^P
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?
@SentulAsia Just link on the pull request should suffice
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)
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.
👍