0

I followed http://railscasts.com/episodes/199-mobile-devices and implemented

request.format = :mobile if mobile_device?

But it's pretty stupid and sometimes confusing if I just need to copy the same html in the .mobile files. Is there any way to use the .html files if the .mobile files don't exist?

I was thinking about using something like

<%= render 'path/to/htmlfile' %> 

in the .mobile files, but I hope there is a better option.

hansottowirtz
  • 664
  • 1
  • 6
  • 16

0 Answers0