Rails 4.1.1
Replace render :text with render :plain

render :text is deprecated