I\'m on Rails 2.3.3, and I need to make a link that sends a post request.
I have one that looks like this:
= link_to(\'Resend Email\',
{:controlle
UPDATE: This is an old answer for legacy Rails versions. For Rails 4+, see William Denniss' post below.
Sounds to me like the content type of the response isn't correct, or isn't correctly interpreted in your browser. Double check your http headers to see what content type the response is.
If it's anything other than text/html, you can try to manually set the content type like this:
render :nothing => true, :status => 200, :content_type => 'text/html'