This is indeed the issue and the proper solution. Or you could use mobile_fu instead: https://rubygems.org/gems/mobile-fu
Regards, Ben Langfeld On Sun, May 22, 2011 at 7:37 PM, Michael Koziarski <[email protected]>wrote: > > I posted this to the Rails Talk list but no one responded. I'm not > > exactly sure what "rails core" is defined as -- this problem is deep > > inside activesupport, can be reproduced in seconds on a fresh new > > Rails app, and I think setting the format request seems pretty "core" > > to the platform to me, so I'm still not sure if this is the right list > > but it seem like this is in fact a Rails core problem. > > The error message you're receiving is pretty confusing, so there's > definitely something nicer we should do there. However I'm guessing > that this isn't a bug. > > You have to register a mime type for that extension, or an alias, if > you want it to work. Something like: > > Mime::Type.register_alias "text/html", :mobile > > If you don't, then rails can't tell what mime type to send with the > response. > > > -- > Cheers > > Koz > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
