4 ms·
That article is no older than the one linked! There's also a rails plugin that can serve mobile views to various mobile browsers including opera mobile. Sorry,
by hopeless 17y ago
That article is no older than the one linked! There's also a rails plugin that can serve mobile views to various mobile browsers including opera mobile. Sorry, on mobile at the moment and I can't remember the name but try searching github.
- rufo 17y agoYou're right, it wasn't the newest example, but I didn't say it was newer - I mainly thought it was an example of better Rails design and development than the linked article. (Why should the controller be concerned at all with what orientation the phone is in? That's a client-side view concern, not the controller's... unless you're loading additional content, in which case you should load that content, not ping back to the server with a new width. I'm also not clear why you'd add an attribute to body for reformatting the page when you could just add a class.) I think this is the extension you're referring to - a cursory glance looks good to me: http://github.com/brendanlim/mobile-fu/tree/master http://github.com/brendanlim/mobile-fu/tree/master
- hopeless 17y agoMobile_fu. You're right! I used it briefly on a site before removing the functionality as I didn't really need it.