This project is archived and is in readonly mode.

#3953 ✓duplicate
mculp

responder.rb 'text' type counter-intuitive

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

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

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Tags

Pages