I made a new app and I started from scratch. After following the steps
in my previous posts, I still get 406 errors. This is so strange; it
seems like I'm the only one in the world having this problem with 2.3!
Anything else I can do?

On Apr 19, 3:25 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> 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-Koserhttp://www.marnen.org
> [email protected]
> --
> Posted viahttp://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