At Mon, 6 Sep 2010 04:05:17 +0300,
Svilen Vassilev wrote:
>
> I have similar issues with some js.rjs files after upgrading an app to rails
> 3. Some respond_to blocks keep working fine as before and I get JS returned,
> some keep trying to return HTML and thus spit out the 406 error. I haven't
> found any good reason in my code to justify this kind of behavior, even
> after i tried reducing the affected js.rjs files to a simple straightforward
> single line of code: I still get them returned as html with error 406. I
> even tried to enforce javascript headers by putting:  format.js {render
> :content_type => 'text/javascript'} in the respond_to block, but that didn't
> change it.
> Really stuck on this issue. In 2.3.8 the code worked perfectly fine.

Hi Svilen,

FYI:

https://rails.lighthouseapp.com/projects/8994/tickets/5277-rails-300rc-responds-strangely-to-empty-accept-header
https://rails.lighthouseapp.com/projects/8994/tickets/5278-order-of-an-accept-header-should-not-matter-to-respond_to-rails-300rc

I believe that rails is doing the wrong thing here, but I do not have
time to supply a patch.

best, Erik Hetzner
Sent from my free software system <http://fsf.org/>.

Attachment: pgpPUOhv3Ah3W.pgp
Description: PGP signature

Reply via email to