Is Mime::Type.register_alias "text/html", :mobile missing from mime_types.rb?
Reported by weyus (at att) | April 13th, 2009 @ 05:24 PM
In order to get mobile_fu completely working - meaning that I can actually serve my .mobile.erb templates for a given request, I had to add:
Mime::Type.register_alias "text/html", :mobile
to my config/initializers/mime_types.rb file.
Should the plugin be adding in this mime type for me?
Wes Gamble
Comments and changes to this ticket
-
weyus (at att) April 13th, 2009 @ 05:40 PM
Sorry guys - I was going off an old blog post. I see the documentation on this on github. Please close.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Want to automatically detect mobile devices that access your Rails application? Mobile Fu allows you to do just that. People can access your site from a Palm, Blackberry, iPhone, Nokia, etc. and it will automatically adjust the format of the request from :html to :mobile.