3 ms·
You'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 l
by rufo 17y ago
You'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.