rails/actionpack/test
Michael Koziarski 2f4aaed7b3 Disable the Accept header by default
The accept header is poorly implemented by browsers and causes strange errors when used on public sites where crawlers make requests too.  You should use formatted urls (e.g. /people/1.xml) to support API clients. Alternatively to re-enable it you need to set:

config.action_controller.use_accept_header = true

A special case remains for ajax requests which will have a javascript format for the base resource (/people/1) if the X-Requested-With header is present.  This lets ajax pages still use format.js despite there being no params[:format]
2008-07-07 07:31:49 +02:00
..
activerecord Set precompiled fixture load path constant to speed up tests 2008-06-25 15:24:12 -05:00
controller Disable the Accept header by default 2008-07-07 07:31:49 +02:00
fixtures Make sure render :collection doesnt set nil local when :as is absent 2008-07-02 17:19:41 +01:00
template Revert "Moved TemplateHandlers to Base" 2008-07-03 21:09:37 -05:00
abstract_unit.rb Set precompiled fixture load path constant to speed up tests 2008-06-25 15:24:12 -05:00
active_record_unit.rb Set precompiled fixture load path constant to speed up tests 2008-06-25 15:24:12 -05:00
adv_attr_test.rb Add some tests for adv_attr_accessor. Closes #10633 [fcheung] 2008-01-12 03:06:10 +00:00
testing_sandbox.rb Ruby 1.9 compat: text helper 2007-12-21 11:51:17 +00:00