/ Published in: Rails
Put the following in your controller to define the content-type for that specific controller.
Expand |
Embed | Plain Text
class SampleController < ApplicationController def index headers["Content-Type"] = "text/html" # Use "text/xml" for XML files and so forth. end end
You need to login to post a comment.
