> I just don't think that the content type should mandate the template
> format. It should prefer a specific format, but if that format
> doesn't exist, I think it should use the Accepts header to determine
> other template formats.

There be dragons.   The accepts header is a constant source of
shenanigans for those of us who run regularly-crawled public sites.
Browsers send junk,  don't rely on it.

The problem that you're seeing is that your ajax request is actually
*asking* for javascript, so it won't do what you want it to.

The best fix is to probably to render the js version of the partial,
but if it doesnt exist, fall back to html or something similar.

> I'm looking into a patch for this.
>
> Brandon
>
> >
>


-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to