Methods
- A
- C
- F
- H
- I
- J
- M
- R
- S
- U
Instance Public methods
all_types_with_layout()
Link
custom_constant_handling()
Link
custom_constant_handling_without_block()
Link
custom_type_handling()
Link
forced_xml()
Link
handle_any()
Link
handle_any_any()
Link
html_or_xml()
Link
html_xml_or_rss()
Link
iphone_with_html_response_type()
Link
iphone_with_html_response_type_without_layout()
Link
# File actionpack/test/controller/mime_responds_test.rb, line 144 def iphone_with_html_response_type_without_layout request.format = "iphone" if request.env["HTTP_ACCEPT"] == "text/iphone" respond_to do |type| type.html { @type = "Firefox"; render :action => "iphone_with_html_response_type" } type.iphone { @type = "iPhone" ; render :action => "iphone_with_html_response_type" } end end
js_or_html()
Link
json_or_yaml()
Link
json_xml_or_html()
Link
just_xml()
Link
made_for_content_type()
Link
rescue_action(e)
Link
using_defaults()
Link
using_defaults_with_type_list()
Link
Instance Protected methods
set_layout()
Link
# File actionpack/test/controller/mime_responds_test.rb, line 158 def set_layout if action_name.in?(["all_types_with_layout", "iphone_with_html_response_type"]) "respond_to/layouts/standard" elsif action_name == "iphone_with_html_response_type_without_layout" "respond_to/layouts/missing" end end