Forum: Ruby on Rails Does render(:file => some_file) interpret file as Erb?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bb4bdf2b184027bc38d4fb529770cde5?d=identicon&s=25 Wes Gamble (weyus)
on 2007-01-24 00:20

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 topic is locked and can not be replied to.