It took a little while longer, but I found a supposedly undocumented
gotcha in Rails 3 that was causing my problem.

The controller in question had a private method "content_type"
defined.  Apparently that method is already defined for controllers,
and overriding it was causing the problem with the MIME type.  So,
don't define a content_type method in your controller.

On Dec 3, 12:26 pm, Pete Deffendol <p...@deffendol.org> wrote:
> Hi,
>
> I'm experiencing a strange problem on an application this is in the
> process of being converted from Rails 2.3 to 3.0.3.  I have several
> controllers that are rendering either HTML or JSON depending on the
> requested format, using respond_to:

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to