thedarkone
e12e2fb4f6
Cache 2 of Request's commonly called methods.
2010-09-27 17:45:59 +02:00
thedarkone
8fdb34b237
Cache url_options on a per-request basis.
2010-09-27 17:45:59 +02:00
thedarkone
86bcccf8df
No need to create a separate lambda for each call.
2010-09-27 17:45:59 +02:00
thedarkone
7b2d51817d
Make asset extension rewriting faster.
2010-09-27 17:45:58 +02:00
thedarkone
05e53b4c1a
Optimize relative_url_root rewriting code.
2010-09-27 17:45:58 +02:00
thedarkone
918dc27345
Compile ActionController::Base.config's methods to avoid method_missing overhead.
2010-09-27 17:45:58 +02:00
Santiago Pastorino
56de4e9a80
Fix the precedence issue here
2010-09-26 17:54:00 -03:00
Santiago Pastorino
db23e32141
Not need to do this double ternary
2010-09-26 17:43:26 -03:00
Santiago Pastorino
29f13beda3
port is appended twice to HTTP_HOST when host already has the port
2010-09-26 12:06:19 -03:00
Carlos Antonio da Silva
12db1a39cd
Partial revert of #d650b71 'Remove deprecated stuff in ActionController'
...
This brings back the deprecated modules from ActionController, because
they didn't have any deprecation warning.
2010-09-26 02:13:48 +08:00
Carlos Antonio da Silva
ecc13f7c18
We don't need to check if the format exists to generate the url, it already does it internally
2010-09-26 02:13:48 +08:00
Carlos Antonio da Silva
00e7633555
More cleanup on form helpers
2010-09-26 02:13:47 +08:00
Carlos Antonio da Silva
6345899489
Remove last tests with deprecated form_for and cleanup form_for helper
...
This cleans up the last bits of deprecation stuff from form_for helper.
However there is still a bug when using :as => foo[], with index. The
classes and ids are being generated using [], such as foo[]_edit. This
bug already existed but it was not detected before.
2010-09-26 02:13:47 +08:00
Carlos Antonio da Silva
db57e92784
Select tags with array options are deprecated, removing
2010-09-26 02:13:46 +08:00
Carlos Antonio da Silva
eb8a24a375
Refactor form_for helper
2010-09-26 02:13:46 +08:00
Carlos Antonio da Silva
7fc1edd790
Remove deprecated stuff in ActionController
...
This removes all deprecated classes in ActionController related to
Routing, Abstract Request/Response and Integration/IntegrationTest.
All tests and docs were changed to ActionDispatch instead of ActionController.
2010-09-26 02:13:45 +08:00
Carlos Antonio da Silva
f405df6e57
There is no DeprecatedBlockHelpers in AV, so remove it
2010-09-26 02:13:44 +08:00
Krekoten' Marjan
8639c10a40
Fix logging when cache key contains % sign [ #5570 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 11:04:20 +02:00
John Firebaugh
308517e913
Don't duplicate Rack::Response functionality. [ #5320 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-25 10:58:07 +02:00
José Valim
6b3ad0cafc
There is no need to use instance_eval since the proc is created in the same context it is eval'ed.
2010-09-24 12:54:31 +02:00
Nando Vieira
7223fe7faf
Make redirect_to accept blocks [ #5643 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-24 12:49:27 +02:00
Kevin Hughes
f48c56008e
Changed documentation for auto_link so that the truncate example works [ #5694 state:resolved]
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-09-24 00:58:43 +02:00
Xavier Noria
8c0c815ba7
resolves rdoc conflict
2010-09-23 22:35:08 +02:00
Carl Lerche
1da0dc2f90
Improve performance of applications using file uploads by not busting the method cache on every request containing a file upload.
2010-09-22 17:36:12 -07:00
Aaron Patterson
de9b3385fc
fixing bug with rails use of rack-test
2010-09-22 17:09:06 -07:00
Emilio Tagua
59296ab26d
Refactor routing methods.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:03 -03:00
Emilio Tagua
8c97f49f2e
Refactor decode_credentials to avoid inject and use map instead.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:03 -03:00
Emilio Tagua
6d8a6700a7
Perf: refactor _assign method to avoid inject and defining unneeded local var.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:03 -03:00
Emilio Tagua
10a63e2a0c
Refactor methods in html node to avoid injects.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:02 -03:00
Joost Baaij
b39dfd5936
Document form_for behaviour when using file_field inside the block
2010-09-21 15:11:04 +02:00
Santiago Pastorino
0523b55ab9
file_field propagates up multipart property even inside of fields_for
2010-09-20 01:11:55 -07:00
Santiago Pastorino
88a82bcb2d
application.js should be the last file on javascript_include_tag(:all)
2010-09-19 14:41:32 -07:00
Aaron Patterson
2d65ff5af7
removing some warnings
2010-09-18 14:14:46 -07:00
Aaron Patterson
6b50bfb0f0
freeze is not necessary
2010-09-18 14:03:29 -07:00
Aaron Patterson
38f6533792
argument error is done for us
2010-09-18 14:00:00 -07:00
Santiago Pastorino
b17b980a15
file_field makes the enclosing form multipart
2010-09-18 12:31:00 -07:00
Maxim Chernyak
20685d07ab
Fix header capitalization by explicitly upcasing first letter of every word, and avoiding capitalize. [ #5636 state:resolved]
2010-09-18 20:49:51 +02:00
Andrew White
0bffd7d933
Raise ArgumentError instead of normalizing controller name when there is a leading slash [ #5651 state:resolved]
2010-09-18 17:49:46 +01:00
Diego Carrion
aa654ab065
updated instructions on how to change the default session store
2010-09-18 12:46:21 -03:00
Diego Carrion
a63749483c
updated instructions to generate the migration for the ActiveRecord session store table
2010-09-18 12:46:21 -03:00
Andrew White
013ed1c050
Remove leading slash from controller [ #5651 state:resolved]
2010-09-18 13:32:54 +01:00
Carl Lerche
5ff2b73b48
Small tweak the ConditionalGet documentation
...
Time#utc does not need to be called when passing the object to :last_modified since it is called internally to Rails.
2010-09-17 14:20:35 -07:00
Carl Lerche
7418a44096
Add RouteSet#append
...
Allows specifying blocks to the routeset that will get appended after the RouteSet is drawn.
2010-09-17 12:05:40 -07:00
Alexey Mahotkin
dfebdb1b03
Tiny fixes to rdoc
2010-09-16 17:10:36 +04:00
rspeicher
6f3ac42550
Typos
2010-09-15 19:19:48 -04:00
Xavier Noria
dd6efe98b6
Merge remote branch 'docrails/master'
2010-09-14 20:07:29 +02:00
Xavier Noria
0207bc7cc9
get csrf_meta_tag back to the generated layout in deference to existing printed material, chomp also the generated HTML to be faithful to the output before the refactor
2010-09-14 01:35:44 +02:00
wycats
254ab7d916
First pass at Rack::Cache
2010-09-13 16:06:03 -07:00
W. Andrew Loe III
9cd094b8da
Only send secure cookies over SSL.
2010-09-13 15:11:46 -07:00
Xavier Noria
0522b26cdf
reviews 02656ac
2010-09-13 23:10:43 +02:00