Can a mobile mime type fall back to “html” in Rails?

后端 未结 15 1327
余生分开走
余生分开走 2020-12-23 22:17

I\'m using this code (taken from here) in ApplicationController to detect iPhone, iPod Touch and iPad requests:

before_filter :detect_mobile_request, :detec         


        
15条回答
  •  孤城傲影
    2020-12-23 22:19

    Trying removing the .html from the .html.erb and both iPhone and browser will fallback to the common file.

提交回复
热议问题