Fixed Rails 3.x compatibility by adding raw wrap