Andrew wrote:
> Thanks for the advice; it worked fine pre-2.3 though. 

I'm not sure why this would ever have worked, but then again MIME type 
mapping is one of my weak spots in Rails.

> I added
> "Mime::Type.register_alias "text/javascript", :iphonejs" to
> mime_types.rb and put "format.iphonejs" in the respond_to block, but
> now I get a 406 Not Acceptable error.

Did you restart the server?  If I remember correctly, defined MIME types 
are only loaded at server startup.

> Am I doing it wrong?

You must be, since you're not getting the right result. :D

But I'm not sure where the problem is, if restarting the server doesn't 
do the trick.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to