render text instead of plain for rails 4.0.4
merge master branch