mobile_fu for Rails 4

帅比萌擦擦* 提交于 2019-12-07 02:41:13

问题


I'm trying to switch my app from Rails 3.2.13 to Rails 4. In doing so, I've hit one main snag -- I use the gem mobile_fu in order to determine if users are coming from a mobile device. That gem requires railties 3.2.13, but rails 4.0.2 and sass-rails for rails 4.0.2 both require railties >= 4.0.

What's a good way to solve this problem? I'm happy to dig into the mobile_fu code as it doesn't seem particularly tricky, but I have very little experience dealing with railties and what dependencies on railties mean.

Thanks!


回答1:


You can try using the more latest version of mobile-fu at https://github.com/benlangfeld/mobile-fu

gem 'mobile_fu' (with an underscore) gives you the old one. gem 'mobile-fu' gives you the new one.



来源:https://stackoverflow.com/questions/20978483/mobile-fu-for-rails-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!