Does render(:file => some_file) interpret file as Erb?


I want to render the contents of a file as the end result of an action.
It appears that Rails assumes that the file is an Erb template and
fails. My file is pre-generated HTML that I built on the server, so I
just want to render the contents of the file.

Can I use render(:file => some_file_name) or do I have to use
render(:text =>


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs