Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8261

Show
Ignore:
Timestamp:
12/03/07 19:49:22 (10 months ago)
Author:
david
Message:

Make sure that setting the format with a symbol works too

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/test/controller/mime_responds_test.rb

    r7719 r8261  
    118118  def iphone_with_html_response_type  
    119119    Mime::Type.register_alias("text/html", :iphone) 
    120     request.format = "iphone" if request.env["HTTP_ACCEPT"] == "text/iphone" 
     120    request.format = :iphone if request.env["HTTP_ACCEPT"] == "text/iphone" 
    121121     
    122122    respond_to do |type|