José Valim
b7fd42626a
Use helpers.label instead of views.labels.
2010-01-07 02:28:10 +01:00
José Valim
319e4aa263
Make ActionPack specs work when I18n 0.3.3 is installed as gem.
2010-01-05 00:27:50 +01:00
Hongli Lai (Phusion)
1012dec88f
The failsafe middleware should flush the logger upon logging the error, otherwise nothing will be written to the log file.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2010-01-05 10:39:42 +13:00
Zach Brock
f32c96eb76
fixing autolinking other protocols
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#3494 state:committed]
2010-01-05 10:39:12 +13:00
Carsten Gehling
f5714abc3d
I18n label helper [ #745 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-01-02 23:38:01 +01:00
David Heinemeier Hansson
1684aa113e
Fix tests
2009-12-27 15:23:51 -08:00
David Heinemeier Hansson
2675e4ef83
Translated strings in the view are assumed html_safe ( Closes #3401 )
2009-12-24 20:33:25 -08:00
David Heinemeier Hansson
e6cadd422b
Added :alert, :notice, and :flash as options to ActionController::Base#redirect_to that'll automatically set the proper flash before the redirection [DHH] Added ActionController::Base#notice/= and ActionController::Base#alert/= as a convenience accessors in both the controller and the view for flash[:notice]/= and flash[:alert]/= [DHH]
2009-12-17 11:34:47 -08:00
David Heinemeier Hansson
1229ef7bf3
Accessing nonexistant cookies through the signed jar should not raise an exception
2009-12-15 21:27:38 -08:00
David Heinemeier Hansson
0200e20f14
Added cookies.permanent, cookies.signed, and cookies.permanent.signed accessor for common cookie actions [DHH]
2009-12-15 20:01:48 -08:00
Michael Koziarski
c253d7b2db
1.9 Fix for exception views.
2009-12-03 10:27:11 +13:00
Gabe da Silveira
bfe0328580
Make sure strip_tags removes tags which start with a non-printable character
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-11-27 10:04:22 +13:00
Eric Chapweske
3719bd3e95
Decode http_authentication creditentials without generating abitrary symbols.
2009-11-27 09:57:10 +13:00
Michael Koziarski
ec542caf58
Prepare for the 2.3.5 release
2009-11-25 18:56:12 +13:00
Joshua Peek
0f0f977625
Revert "Prefix Internet Explorer's accepted mime types with sensible defaults."
...
IE XHR requests are misinterpreted as HTML instead of JS.
This reverts commit c680f2372e .
2009-11-23 11:19:39 -06:00
Jeremy Kemper
a942d66597
Extract form_authenticity_param instance method so it's overridable in subclasses
2009-11-17 23:36:48 -08:00
Will Read
88d2e4ca6f
Allow explicit placement of hidden id element for nested models.
...
[#3259 state:resolved]
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com >
2009-11-15 21:50:35 +01:00
Jeremy Kemper
c27cb5e1d4
Ruby 1.9: remove dep on T::U::AssertionFailedError
2009-11-13 18:05:14 -08:00
Jeremy Kemper
3fa8ca5845
Ruby 1.9.2: StringIO no longer has #path
2009-11-13 13:02:29 -08:00
Jeremy Kemper
2d67ef9416
Ruby 1.9.2: prefer Array.wrap to [foo].flatten
2009-11-13 12:59:16 -08:00
David Vrensk
4bc58a215f
Rdoc for changes introduced in 6339e5d36, 542d6a0abd.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-11-12 11:20:34 -08:00
Bryan Helmkamp
22e1f4b307
Silence warning: instance variable @selected not initialized
2009-11-09 17:24:18 -05:00
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