Pratik Naik
1dbfe9766e
Ensure render :file works inside templates
2008-06-05 23:33:10 +01:00
Frederick Cheung
2e0765a003
Make partial counter start from 0.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-05 22:11:40 +01:00
Joshua Peek
c4d570c2eb
Use CGI::Cookie::parse for request cookies until we officially deprecated CGI.
2008-06-04 22:32:09 -05:00
Sean Huber
30a0ebb3eb
Add RJS#page.reload. [ #277 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-04 13:32:53 +01:00
David Heinemeier Hansson
885453537e
Merge branch 'master' of git@github.com:rails/rails
2008-06-03 18:12:56 -05:00
David Heinemeier Hansson
edfa195e2a
Fixed Request#remote_ip to only raise hell if the HTTP_CLIENT_IP and HTTP_X_FORWARDED_FOR doesnt match (not just if theyre both present) [Mark Imbriaco, Bradford Folkens]
2008-06-03 18:11:47 -05:00
Gabe da Silveira
025515b234
Fix assert_redirected_to for nested controllers and named routes
...
[#308 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-06-04 11:08:58 +12:00
josevalim
d54d90f2b5
Allow caches_action to accept a layout option [ #198 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-06-03 14:02:51 -05:00
Joshua Peek
c08547d226
Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ActiveSupport [ #238 state:resolved]
2008-06-03 13:32:53 -05:00
Joshua Peek
92050f6c6f
Ensure Rack processor reads CGI output_cookies for the session cookie.
2008-06-02 21:02:51 -05:00
Ezra Zygmuntowicz
06cb20708b
Added Rack processor
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-06-01 11:25:11 -07:00
Michael Koziarski
ef21e01333
Remove dead code, and the tests for it.
2008-05-31 16:59:03 -07:00
Jeremy Kemper
888a2927b6
Remove superfluous tests directive
2008-05-26 01:39:21 -07:00
Kevin Glowacz
1a73e98660
Fix auto_link helper for already linked urls. [ #72 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-22 21:10:40 +01:00
Adam
314e556e6f
Parentheses should be acceptable characters for auto_link_urls. [ #234 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-22 11:16:02 +01:00
Erkki Eilonen
6e3521e613
Improve check_box_checked? to use include? for Array values. [ #193 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-21 20:23:58 +01:00
Jeremy Kemper
b43309328a
Ruby 1.9 compat: ensure binary encoding for post body parsing
2008-05-19 16:24:26 -07:00
Jeremy Kemper
b5c8433a6f
Ruby 1.9 compat: qualify module name within module_evaled block
2008-05-19 12:57:42 -07:00
Chris Hapgood
e6f5079a48
Test for assert_response for failure response without an exception. [ #141 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-19 11:20:36 +01:00
José Valim
99860b72ae
Add fragment_exist? and exist? methods to cache stores. [ #203 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-19 10:38:59 +01:00
Frederick Cheung
17d1319c48
Ensure observe_field encodes value parameter. [ #216 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-19 10:30:56 +01:00
gbuesing
e30a263bf1
InstanceTag#default_time_from_options overflows to DateTime
2008-05-18 10:59:24 -05:00
Sven Fuchs
345f030c5b
Ensure routing generator works with non-string keys. [ #172 state:resolved]
...
Make sure that (with recent correction to globbed parameter escaping) non-string
values can still be passed route generation helpers for globbed route segments.
For example, foo_path([1, 2, 3]) should still work for a route like map.foo "*globbed"
by implicitely calling to_s on the Fixnums.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-16 17:36:09 +01:00
Eugene Pimenov
150717344a
auto_link helper fails to recognize links separated by space. [ #72 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-16 13:00:39 +01:00
Robby Russell
6df995bbf2
Adding an example test case for pluralize for (y) -> (ies)
2008-05-14 17:17:24 -07:00
Joshua Peek
603c853a34
Don't fallback to just adding "'s" in TextHelper#pluralize, because the Inflector is always loaded.
2008-05-14 14:34:28 -05:00
Joshua Peek
bc3cc91a3f
One last fix to test_filter_parameters_is_protected.
2008-05-14 14:14:23 -05:00
Joshua Peek
f32b974338
Clean up previously commited test.
2008-05-14 13:55:14 -05:00
Joshua Peek
1066b16237
Improve test coverage for filter_parameters [José Valim]
2008-05-14 13:38:02 -05:00
Joshua Peek
8d37bd08ee
Protect #filter_parameters created by filter_parameter_logging [José Valim] [ #196 state:resolved]
2008-05-14 13:00:09 -05:00
Joshua Peek
7708650f73
Added conditional support to caches_action [José Valim] [ #166 state:resolved]
2008-05-14 12:33:54 -05:00
Rich Cavanaugh
d8bcec6ce6
make CGI::Cookie handle deleting a cookie properly
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-05-13 10:51:55 -07:00
Andre Arko
d16fbe53b2
Fix remote_function to escape apostrophes inside the remote url passed to Ajax.Update. [ #180 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-13 18:33:33 +01:00
rick
74fd17346f
Merge branch 'master' of git@github.com:rails/rails
2008-05-13 09:41:10 -07:00
Rich Cavanaugh
a425cd1473
Don't double-escape cookie store data. Don't split cookie values with newlines into an array. [ #130 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-05-12 15:26:19 -07:00
Peter Jones
2a986200b9
Bug: Earlier Check for Session in Forgery Protection
...
The session is used by the form_authenticity_token method before it is
tested to be valid. This patch moves a few lines around so that the
session is validated first.
Without this patch, if you try to use forgery protection with sessions
turned off, you get this exception message:
undefined method `session_id' for {}:Hash
The patch includes a test that can be used to see this behavior before
the request_forgery_protection.rb file is patched to fix it.
2008-05-11 13:27:34 -05:00
David Heinemeier Hansson
c43623c48b
Added session(:on) to turn session management back on in a controller subclass if the superclass turned it off (Peter Jones) [ #136 state:resolved]
2008-05-11 13:18:49 -05:00
Andreas Neuhaus
74eed6290e
Fixed flash.now not being accessible in tests. Flash sweeping is now done before action processing instead after
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#10 state:resolved]
2008-05-11 18:30:10 +12:00
rick
d09a8446d5
fix merge conflict with actionpack changelog
2008-05-10 17:46:55 -07:00
Jacek Becela
a7ea06b4eb
Make render shorthands work with namespaced controllers
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-10 11:28:19 +01:00
Chris Roos
6776edccf6
Escape globbed parameters in routes correctly.
...
:controller => 'glob', :action=> 'show', :additional => ['foo/bar', 'baz']
Should generate /glob/show/foo%2Fbar/baz not /glob/show/foo/bar/baz
2008-05-10 14:55:41 +12:00
gbuesing
bfbf03ecee
ActionView::InstanceTag#default_time_from_options with hash args uses Time.current as default; respects hash settings when time falls in system local spring DST gap
2008-05-08 23:40:25 -05:00
gbuesing
66728087d0
Adding Date.current, which returns Time.zone.today if config.time_zone is set; otherwise returns Date.today. ActionView date_helper uses Date.current to determine locale-appropriate default
2008-05-08 22:48:47 -05:00
Pratik Naik
e520fd5db7
Delegate action_name to controller inside views.
2008-05-06 12:02:24 +01:00
rick
c8451aeeea
change ActionController::RequestForgeryProtection to use Mime::Type#verify_request? [ #73 ]
2008-05-06 02:58:32 -07:00
Marcos Arias
2c39836dc3
Refactored and fixed Resources.map_member_actions to make use of custom ActionController::Base.resources_path_names when the option :path_names is not directly specified. Added a specific test for this functionality and fixed assert_restful_routes_for test helper to make use of ActionController::Base.resources_path_names instead of just "new" or "edit".
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#111 state:resolved]
2008-05-06 21:48:07 +12:00
rick
0697d17d12
Change the request forgery protection to go by Content-Type instead of request.format so that you can't bypass it by POSTing to "#{request.uri}.xml" [ #73 state:resolved]
2008-05-06 00:42:24 -07:00
Andrew Vit
04f52219f1
Fixed form helper's name attribute for question methods
2008-05-06 00:03:32 -07:00
rick
37599d16f2
regression test for bug introduced in [ 6a6b4392c1] [Ian White] [ #22 state:resolved]
2008-05-05 23:42:52 -07:00
Cheah Chu Yeow
ee1d508a6b
Allow ActionController::Base#default_url_options to have a default options argument of nil.
...
This fixes a bug introduced in [6a6b4392c1 ] which was breaking routing in ActionController::UrlWriter.
2008-05-05 23:41:33 -07:00