Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

responder.rb 'text' type counter-intuitive

#3953

I am trying to understand the Rails 3 responder functionality and respond_with. However, for the built-in 'text' mime-type, it seems a bit counter-intuitive. responder.rb seems to only check for 'to_text' in my model -- it is never called and I have to overwrite 'to_s' to get the expected results.

http://pastie.org/821433

Reported by mculp · February 13th, 2010 @ 11:29 PM

State: duplicate
Milestone: none
Assigned to: José Valim José Valim
Importance: none