Replace 'render_for_text data' with 'render :text => data'

render_for_text no longer exists in Rails 3.

Fixes #955