class PostController

For testing layouts which are set automatically

Public Instance Methods

index() click to toggle source
# File actionpack/test/controller/mime/accept_format_test.rb, line 41
def index
  respond_to(:html, :iphone, :js)
end

Private Instance Methods

with_iphone() { || ... } click to toggle source
# File actionpack/test/controller/mime/accept_format_test.rb, line 47
def with_iphone
  request.format = "iphone" if request.env["HTTP_ACCEPT"] == "text/iphone"
  yield
end