Sebastian Delmont
ead5d88bf1
Fix filter_parameter_logging of non-hash values within array params
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#2927 state:committed]
2009-07-23 09:33:29 +12:00
Michael Koziarski
143c55d325
Memoize cookies so that updates to cookies are available in the current request. [ #2733 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
Conflicts:
actionpack/test/controller/cookie_test.rb
2009-07-22 09:46:53 +12:00
Michael Koziarski
6a50d6c8e3
Match tests with new reloading behaviour
2009-07-08 17:30:33 +12:00
Hongli Lai (Phusion)
bc2c4a4595
Cleanup application after #close has been called on the Rack response body, not when AC::Reload#call is done.
...
The Rack body might lazily evaluate its output, which is for example the case
if one calls 'render :text => lambda { ... }'. The code which lazily evaluates
the output might use other application classes. So we will want to defer
cleanup until the Rack request is completely finished.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-07-08 13:46:10 +12:00
Hongli Lai (Phusion)
31254bedae
Mocha >= 0.9.7 is required, otherwise mocking doesn't work. [ #2874 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local >
2009-07-07 16:14:22 -07:00
Jesús García Sáez
6673001a5e
Allow symbols on routes declaration (:controller and :action values) [ #2828 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-02 12:19:38 -07:00
Jarl Friis
1c855ad4e7
My suggestion to fix ticket 2401 [ #2401 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-02 11:56:56 -07:00
Yehuda Katz + Carl Lerche
281c1a82de
Fixes a number of tests that inexplicably didn't fail when we committed the original patch
2009-07-02 10:50:39 -07:00
Yehuda Katz + Carl Lerche
e10305f0f4
Accept Symbol for contoller name [ #2855 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-01 11:51:09 -07:00
Chris Mear
eb52dc3db7
Make text_area_tag escape contents by default.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-27 13:15:53 +12:00
Michael Koziarski
9407f6e9a4
Make filter_parameters work correctly with array parameters.
...
Conflicts:
actionpack/lib/action_controller/base/filter_parameter_logging.rb
2009-06-27 13:11:01 +12:00
Joshua Peek
6720b25b2d
send_data should set Content-Length as a string
2009-06-25 14:44:09 -05:00
Joshua Peek
a491b19502
Add :concat option to asset tag helpers to force concatenation.
...
This is useful for working around IE's stylesheet limit.
stylesheet_link_tag :all, :concat => true
2009-06-15 10:23:55 -05:00
Andrew Kaspick
d3d4822262
allow absolute paths for the asset caches
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-11 16:33:01 +12:00
Stephen Anderson
cd14a4a00e
Sanitized the id generated by text_area_tag helper method. text_area_tag('item[description]') should return: <textarea id="item_description" name="item[description]"></textarea> instead of: <textarea id="item[description]" name="item[description]"></textarea> The old id was causing HTML validation failures.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:36:37 +12:00
David Stevenson
898a8801ff
Made label target radio button tags with values. Radio button now respects inherited :index options when generating id.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:29:02 +12:00
Steven Luscher
d63fab344f
Fixes #2439 . ActionController::Integration::Session no longer mangles multiparameter attribute params when processing multipart requests.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:14:01 +12:00
nate
056ddbdcfb
A test to show that http_authentication needs to fail authentication if the password procedure returns nil. Also includes a fix to validate_digest_response to fail validation if the password procedure returns nil.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 19:47:16 +12:00
Jeremy Kemper
91fbdfd5b3
Failsafe doesn't return bare String body
2009-06-08 20:35:52 -07:00
Han Kessels
4d7c597e84
fix for IE incompatibility of :disable_with in submit_tag
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-01 14:03:35 +12:00
Joshua Peek
c73cf7d2c0
Revert "Only save the session if we're actually writing to it [ #2703 state:resolved]"
...
This reverts commit 14edaa104d .
2009-05-30 09:36:32 -05:00
Johan Sörensen
14edaa104d
Only save the session if we're actually writing to it [ #2703 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-28 09:32:16 -05:00
Johan Sörensen
dc94c09503
The FlashHash and friends causes a lot of needless session storing, when we know for a fact that there's no content in the flash. By not storing the empty hash in the session we save a lot of communication with the various session backends, while still keeping the same interface to the flash. [ #2703 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-28 09:22:35 -05:00
Hongli Lai (Phusion)
34a1ed0df8
Make the Failsafe middleware attempt to render 500.html during failsafe response rendering. Also make the default static failsafe response more friendly, in case 500.html rendering fails. [ #2715 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-27 14:59:11 -05:00
Pratik Naik
dbb0258279
Ensure HTTP Digest auth uses appropriate HTTP method [ #2490 state:resolved] [Steve Madsen]
2009-05-18 17:00:29 +02:00
rick
d052e9fb58
Add pluggable JSON backends with support for the JSON gem.
...
Example: ActiveSupport::JSON.backend = "JSONGem"
All internal Rails JSON encoding is now handled by
ActiveSupport::JSON.encode(). Use of #to_json is not recommended, as it
may clash with other libraries that overwrite it. However, you can
recover Rails specific functionality
if you really want to use #to_json.
gem 'json'
ActiveSupport::JSON.backend = "JSONGem"
class ActiveRecord::Base
alias to_json rails_to_json
end
2009-05-17 18:40:38 -07:00
Joshua Peek
e30016c29e
Fix reset_session with ActiveRecord store [ #2200 state:resolved]
2009-05-17 14:44:19 -05:00
Mike Breen
f383a4aa33
Allow assert_template to take a symbol [ #2011 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-05-17 19:40:18 +02:00
José Valim
66ead4f148
Allow strings to be sent as collection to select.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#2391 state:committed]
2009-05-15 15:30:42 +12:00
Joshua Peek
f7cb7fce4c
Sweeper does not belong in Sweeping module
2009-05-14 16:47:24 -05:00
Joshua Peek
7f1f16c01f
Deprecate assert_redirect_to's partial hash matching. This will be fully removed in 3.0.
2009-05-04 20:24:49 -05:00
Ruy Asan
17e712d3a3
Added routing test for irregular ID requirements and custom member action.
...
[#2595 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-05-01 15:02:51 -07:00
John F. Douthat
d1d1894c2f
Fix action-cached exception responses.
...
Methods raising ActiveRecord::RecordNotFound were returning 404 on first request and 200 OK with blank body on subsequent requests.
[#2533 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-04-30 16:48:07 -07:00
Jeremy Kemper
7c4b325e0a
Fix render :json => nil [ #2589 state:resolved]
2009-04-30 16:47:42 -07:00
Joshua Peek
61a1456937
Remove RewindableInput middleware since all input MUST be rewindable according to a recent change in the Rack 1.0 SPEC
2009-04-25 14:05:58 -05:00
Joshua Peek
16f36b6171
Remove vendored version of Rack
2009-04-25 13:59:26 -05:00
Mislav Marohnić
35c5727ace
Always buffer rack.input if it is not rewindable
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-04-17 21:54:09 -05:00
Mislav Marohnić
878aec9d95
Improve rewindable input test coverage so tests fail when you remove the middleware
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-04-17 19:35:25 -05:00
Doug McInnes
dc69d9308a
Fix for TestResponse.cookies returning cookies unescaped [ #1867 state:resolved]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2009-04-07 13:22:21 -05:00
Kenny Ortmann
ace154d067
added tests for session options being defaulted correctly to rack defaults [ #2403 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-04-07 11:08:04 -05:00
Ryan Angilly
651611999d
adding session_options initialization and test [ #2303 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-24 10:53:29 -05:00
thedarkone
6a1267a0b1
Fix template extension parsing. [ #2315 state:resolved] [ #2284 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-24 10:53:24 -05:00
David Dollar
dace54b2e9
Updates tests to cause the tests for the Request class not to proxy through a fake TestRequest object [ #2278 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-24 10:53:14 -05:00
Peter Marklund
daffa5cbdd
Reset request_parameters in TestRequest#recycle! to avoid multiple posts clobbering each other [ #2271 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-24 10:53:07 -05:00
Joshua Peek
c91912700d
just kill brittle test
2009-03-24 10:52:49 -05:00
Joshua Peek
4185a4a5f5
update rack fixture to be ruby 1.9 compat
2009-03-15 23:48:07 -05:00
Joshua Peek
0706de4301
Better error message to try to figure out why the CI build is failing
2009-03-15 23:41:47 -05:00
Joshua Peek
d0e5417861
update rack fixture to be ruby 1.9 compat
2009-03-15 23:25:12 -05:00
Joshua Peek
367049cae6
Fix brittle Time.now mock
2009-03-15 23:17:31 -05:00
misfo
7706b57034
allowed render :file to take Pathnames [ #2220 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-14 10:42:02 -05:00