One of my model objects has a βtextβ column that contains the full HTML address of the web page.
I would like to write a controller action that simply returns this HTML directly from the controller, rather than passing it through .erb templates, like the rest of the actions on the controller.
My first thought was to bring this action to a new controller and create my own .erb template with an empty layout and just <%= modelObject.htmlContent %> in the template, but I wondered if there is a better way to do this in Rails.
ruby-on-rails
Nate Dec 24 '09 at 15:43 2009-12-24 15:43
source share