Created
August 27, 2008 11:09
-
-
Save mlangenberg/7461 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test < Application | |
# ...and remember, everything returned from an action | |
# goes to the client... | |
def index | |
body = render(:format => :html) | |
render(:template => 'test/mail', :format => :text, :layout => false) | |
body | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment