Bryan Helmkamp
b45d44cff0
Silence warning: ambiguous first argument; put parentheses or even spaces
2009-11-09 17:24:13 -05:00
Bryan Helmkamp
40f0ef7a37
Silence warning: instance variable @segment not initialized
2009-11-09 17:24:09 -05:00
Bryan Helmkamp
ea345a540f
Silence warning: instance variable @integration_session not initialized
2009-11-09 17:24:03 -05:00
Bryan Helmkamp
ae5e2f5919
Silence warning: instance variable @auto_index not initialized
2009-11-09 17:23:59 -05:00
Bryan Helmkamp
8073e47262
Silence warning: instance variable @explicit_view_paths not initialized
2009-11-09 17:23:55 -05:00
Bryan Helmkamp
a0d28dcfd4
Silence warning: instance variable @real_format not initialized
2009-11-09 17:23:50 -05:00
Bryan Helmkamp
17fda24523
Silence warning: instance variable @controller not initialized
2009-11-09 17:23:37 -05:00
Bryan Helmkamp
a3ab2b0ee1
Silence warning: instance variable @session not initialized
2009-11-09 17:23:30 -05:00
Jeremy Kemper
97a7cdca17
Merge commit 'brynary/2-3-stable' into 2-3-stable
2009-11-09 12:26:21 -08:00
Bryan Helmkamp
b68861a00f
Silence warning: method redefined; discarding old template
2009-11-09 15:15:09 -05:00
Bryan Helmkamp
2ccd4e790e
Silence warning: method redefined; discarding old filename
2009-11-09 15:14:18 -05:00
Bryan Helmkamp
8820bb7eff
Silence warning: discarding old h
2009-11-09 15:12:33 -05:00
Jeremy Kemper
fd0289f3dd
Bump Rack to 1.0.1. Ensure integration test input is ASCII.
2009-11-09 11:21:12 -08:00
Bryan Helmkamp
6fdd60e65c
Fix Ruby warning: instance variable @loaded not initialized
2009-11-09 12:57:04 -05:00
Bryan Helmkamp
1a93e93d1b
Fix some Ruby warnings: `*' interpreted as argument prefix
2009-11-09 12:57:04 -05:00
Chris Hapgood
d36f8a2bf2
Share ActionView::TestCase's output_buffer with view for concat support.
...
[#3467 state:resolved]
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com >
2009-11-07 00:15:11 +01:00
Chris Hapgood
df9a47e4b8
Make some assertions in the ActionView::TestCase tests actually do something.
...
[#3468 state:resolved]
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com >
2009-11-06 23:59:45 +01:00
José Valim
7ba80252a5
Make polymorphic_url work with symbols again and refactor it [ #1384 status:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-10-28 14:15:16 -05:00
Yehuda Katz
fdf356d74b
Fixed HTTP digest to properly return 401 when the Authorization header has no nonce specified, or the Authorization header specifies Basic auth [ #2968 state:resolved]
2009-10-21 12:04:59 -07:00
Travis Briggs
eb30c69544
Ensure number_to_human_size does not strip zeros from the end [ #1763 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-10-17 13:37:46 +13:00
Michael Koziarski
459749c30c
Backport the xss_safe? method for plugin authors targetting 2.3 and master
2009-10-15 17:19:24 +13:00
George Ogata
e10b0ddc7b
Make IntegrationTest::Runner propagate method_missing to ancestors.
...
Fixes RSpec integration example groups, which mixes its Matchers
module into ActiveSupport::TestCase.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-10-15 11:02:02 +13:00
Jeffrey Hardy
bbaf3a04f5
CookieJar#delete should return the key's value, consistent with a Hash
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-10-14 11:51:11 -07:00
Michael Koziarski
95b7e4f7d7
field_error_proc needs to return a safe string
2009-10-08 14:02:12 +13:00
Michael Koziarski
80da8eb43d
Merge the prerequisites for on-by-default XSS escaping into rails.
...
This consists of:
* String#html_safe! a method to mark a string as 'safe'
* ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it
* Calls to String#html_safe! throughout the rails helpers
* a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB)
Note, this does *not* give you on-by-default XSS escaping in 2.3 applications. To get that you'll need to install a plugin:
http://github.com/nzkoz/rails_xss
2009-10-08 13:59:21 +13:00
pivotal
6f2c4991ef
Explicitly require ActionController's CGI extensions so they're properly loaded before the first request.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-10-08 09:56:23 +13:00
Pratik Naik
91b61a8d16
Monkey patch Rack::Lint to allow string subclass body
2009-10-06 15:55:56 +01:00
Joshua Peek
11cce5bde9
Coerce all out going body parts to Strings
2009-10-05 14:21:57 -05:00
Yehuda Katz
26f22a28e9
Merge branch '2-3-stable' of git@github.com:rails/rails into 2-3-stable
2009-09-27 21:57:30 -07:00
John Trupiano
f489b3341c
Introduce :almost keyword for distance_of_time_in_words. Make 1.75 days - 2 days return '2 days'.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#3266 state:committed]
2009-09-28 14:56:19 +13:00
Jay Pignata
b372b4c875
Enhancing distance_of_time_in_words to prefix year output with over and about depending upon how many months have elapsed
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#3106 state:committed]
2009-09-28 14:56:14 +13:00
Gaspard Bucher
8371d6f0c1
Fixes a bug where layouts provided with an absolute path would not be found because they were prefixed by 'layouts'. This bug only appears if the path does not contain the word 'layouts'.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#3207 state:committed]
2009-09-28 14:40:21 +13:00
Eloy Duran
b18248ff05
The DomAssertions now also strip surrounding whitespace inside tags.
2009-09-25 17:46:21 +02:00
Eloy Duran
deac481eb7
Made assert_dom_equal and assert_dom_not_equal ignore meaningless whitespace.
...
Also changed message of assert_dom_equal to be like assert_equal.
2009-09-25 17:05:30 +02:00
Eloy Duran
cddd4746f9
Rewrote ActionView::TestCase.
...
The test case now mimicks the template environment more closely, so it's
possible to use render, load helper dependencies.
This also fixes assert_select, and similar assertions. Because view tests
and helpers generally don't render full templates assert_select looks
first in rendered and then in output_buffer to find the rendered output.
2009-09-25 15:51:27 +02:00
Manfred Stienstra
c680f2372e
Prefix Internet Explorer's accepted mime types with sensible defaults.
2009-09-25 15:47:33 +02:00
Andrew France
55bc0c76f8
Allow fields_for on a nested_attributes association to accept an explicit collection to be used. [ #2648 state:resolved]
...
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com >
2009-09-12 13:16:30 +02:00
Jeremy Kemper
08d15f86c4
Deprecate "Allow frameworks to be required by their gem name"
...
This has just been confusing. Better to educate than band-aid.
This deprecates commit 18a24274ec .
Originally from http://dev.rubyonrails.org/ticket/8845 [drnic]
2009-09-12 02:45:33 -07:00
Nathaniel Talbott
ab9efe9e16
Fix filtering parameters when there are Fixnum or other un-dupable values.
...
[#3184 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-09-10 18:52:45 -07:00
Michael Koziarski
a43ef2436c
Prepare for 2.3.4 release
2009-09-04 09:56:09 +12:00
Michael Koziarski
9a68c72b4b
Clean tag attributes before passing through the escape_once logic.
...
Addresses CVE-2009-3009
2009-09-04 09:26:13 +12:00
Joshua Peek
6fdfe4cb5f
Deprecated "best fit" detection is to difficult. Just provide a switch to toggle the new behavor on.
...
# new_rails_defaults.rb
ActionController::Routing.generate_best_match = false
2009-08-31 16:09:47 -05:00
Jeffrey Hardy
4240890b28
UrlRewriter#rewrite_url should call #to_param on the value given in :anchor option, just as #url_for does
...
[#2746 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-26 14:11:39 -07:00
Akira Matsuda
e46e67c71f
I18n: use I18n for select helpers' prompt text
...
[#2252 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-26 13:56:15 -07:00
Jeremy Kemper
3cd245b7fa
Revert "I18n: use I18n for select helpers' prompt text"
...
Broke CI.
[#2252 state:open]
This reverts commit d725ad39da .
2009-08-26 12:12:04 -07:00
Akira Matsuda
d725ad39da
I18n: use I18n for select helpers' prompt text
...
[#2252 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-26 09:39:01 -07:00
Yehuda Katz
5f6e788e27
Removes examples so it can be replaced with separate repo
2009-08-18 11:15:31 -07:00
Hongli Lai (Phusion)
14b6ab0f01
Fix reloading of metal pieces.
...
- Do not hold references to old metal objects after metal classes have been reloaded.
- Obtain the reloader lock before building the middleware stack, so that reloading of metal pieces works in the face of multithreading.
[#2873 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-15 18:00:49 -07:00
Jay Pignata
1cf32ad35a
Adding a call to logger from params_parser to give detailed debug information when invalid xml or json is posted
...
[#2481 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-08-15 16:46:43 -07:00
Jeremy Kemper
75a483e18e
Normalize route generation order: associations, yield block, then own routes.
2009-08-15 15:58:20 -07:00