Pratik Naik
beca1f2e15
Template#mime_type should not use Mime::Type when Action Controller is not included
v2.3.0
2009-02-02 00:21:03 +00:00
David Heinemeier Hansson
ed5fa2fe33
Mark CHANGELOGs for release
2009-02-01 22:06:40 +01:00
Pratik Naik
886124e688
Merge docrails
2009-02-01 18:25:03 +00:00
Mike Gunderloy
3be0ad60e4
Add Rails Guides to the default links on generated index.html [ #1839 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-02-01 17:41:12 +00:00
Mike Gunderloy
8d35b36d1a
Add :reconnect option to generated mysql database.yml [ #1838 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-02-01 17:39:20 +00:00
Joshua Peek
5b5d0e325d
Use Rack::Head middleware to ensure the body is discarded for HEAD requests
2009-02-01 01:01:49 -06:00
Joshua Peek
63b4fe53ab
Remove ancient tests for CGI parsing bug
2009-01-31 23:51:42 -06:00
Joshua Peek
28b65c9120
Removed Prototype specific Safari 2 AJAX hack.
...
The normal null character stripper is still there.
2009-01-31 23:51:41 -06:00
Michael Koziarski
fa7aa19a99
Don't rely on the order in these tests
2009-02-01 15:27:41 +13:00
miloops
2b8be761e4
validate_length_of should use custom message if given when using in or within.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1057 state:committed]
2009-02-01 14:58:17 +13:00
Tarmo Tänav
80747e9db1
Removed map.resources :only/:except inheritance
...
It's very rare for these options to apply identically to nested child resources, and with this inheritance on it's very difficult to have a child resource with more actions than the parent.
This reverts commit 2ecec6052f .
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1826 state:committed]
2009-02-01 14:47:56 +13:00
Eloy Duran
ec8f045844
Add support for nested object forms to ActiveRecord and the helpers in ActionPack
...
Signed-Off-By: Michael Koziarski <michael@koziarski.com >
[#1202 state:committed]
2009-02-01 14:44:30 +13:00
Jeremy Kemper
a02d752ae4
Ruby 1.9 compat: omit Rack::Lint from integration tests until it accepts String headers and bodies
2009-01-31 11:03:00 -08:00
Jeremy Kemper
bc94061156
Fix unsorted array comparison
2009-01-31 10:56:16 -08:00
Jeremy Kemper
4790e02e74
Ruby 1.9 compat: work around that String is not Enumerable
2009-01-31 10:55:47 -08:00
Luca Guidi
75b2e7e9c9
Make sure XmlMini is being correctly autoloaded by Ruby 1.9.1
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-01-31 10:26:24 -08:00
Charles Nutter
ed0e564087
Ensure constant_watch_stack is protected by a mutex, so concurrent requires do not corrupt it.
...
[#1816 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-01-30 08:27:03 -08:00
Scott Taylor
2dedb5b03a
Controller, response, and request should all refer to same session, even after a call to session_reset [ #1823 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-01-29 19:39:48 -06:00
Mike Gaffney
1b79683171
Deprecation tests for f17c876 [ #1801 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-01-29 19:37:38 -06:00
Pratik Naik
b3bc4fa5e0
Digest#validate_digest_response should accept request instead of controller
2009-01-29 22:06:03 +00:00
Jon Crawford
8761663a68
Added grouped_options_for_select helper method for wrapping option tags in optgroups. [ #977 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-29 18:00:18 +00:00
Gregg Kellogg
306cc2b920
Implement HTTP Digest authentication. [ #1230 state:resolved] [Gregg Kellogg, Pratik Naik]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-29 16:01:59 +00:00
Jacob Dunphy
e6493eb9b7
Sqlite adapter's copy_table incorrectly attempts to recreate a primary key id (:id => true in the create_table) if an :id column is present, even if it isn't a primary_key.
...
This fix sets :id => false if there is an :id column, but it's not the primary_key.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1766 state:committed]
2009-01-29 17:34:33 +13:00
Michael Koziarski
feed7b4cfd
Move to use pg instead of postgres on the CI server
2009-01-29 17:07:29 +13:00
Joshua Peek
2e69db18ce
Only dup local cache values if duplicable [ #1653 state:resolved]
2009-01-28 21:20:46 -06:00
Pratik Naik
a1a9889b06
Move basic auth test controller inside the test class
2009-01-29 01:59:55 +00:00
Bob Aman
166c63818e
Improve exception handling when Location header is invalid. [ #1192 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-28 20:56:46 +00:00
Dan Weinand
91eeb0ff11
Using the highlight helper on text with html shouldn't highlight text inside html attributes. [ #1302 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-28 19:53:59 +00:00
Filip H.F. "FiXato" Slagter
a0d8202bb9
Ensure whitespaces are stripped when merging string joins. [ #1297 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-28 19:50:55 +00:00
Bryan Ray
f725b19710
Added options to script/dbconsole to sqlite3 console in various different modes. [ #607 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-28 19:47:45 +00:00
Rasik Pandey
6079ec1f77
ActiveResource#eqls? and == should not take into account object identity and prefix options should be considered. [ #1098 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-28 19:39:06 +00:00
Daniel Rodríguez Troitiño
9a8e2a059c
Ensure selected option is not ignored for collection_select. [ #1037 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-28 19:35:18 +00:00
Nathan de Vries
32eeb3e521
Ensure that when UrlWriter is included in multiple classes, the default_url_options of one don't affect the other. [ #1277 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-28 19:31:48 +00:00
Pratik Naik
74871961ec
Add array id support to Model.update_counters. [ #1254 state:resolved] [Carlos Júnior]
2009-01-28 19:20:55 +00:00
Pratik Naik
2ae8d3079b
Session cookie header should always be set if :expire_after option is specified
2009-01-28 05:05:48 +00:00
Jeremy Kemper
9714a9b001
Use toplevel reference to ::StringIO since we're in a BasicObject.
2009-01-27 15:25:05 -08:00
David Heinemeier Hansson
e73445ba1b
Merge branch 'master' of git@github.com:rails/rails
2009-01-27 16:13:23 -06:00
Tys von Gaza
dd02af5c7e
Fix for sweepers method_missing missing &block argument [ #1581 status:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2009-01-27 16:11:45 -06:00
Joshua Peek
f716ab92bf
Disable eager loading for all rake tasks [ #802 state:resolved]
2009-01-27 15:53:02 -06:00
Joshua Peek
093f758bd0
Restore implicit rendering for XHR requests that want a HTML template [ #1590 state:resolved]
2009-01-27 14:09:11 -06:00
Joshua Peek
f17c87665e
Fixed deprecated methods on TestSession [ #1801 state:resolved]
2009-01-27 12:28:05 -06:00
Pratik Naik
57b156b338
Dont use Memoizable for ActionController::Request
2009-01-27 17:26:37 +00:00
Yaroslav Markin
17db28f1ca
Improve i18n support for number_to_human_size helper:
...
* now using pluralization properly
* storage unit translations moved to number.human.storage_units.units
* introduced number.human.storage_units.format for languages that do not follow "{{number}} {{unit}}" format (Japanese)
NOTE: I18n table changed, you will need to update your translations.
[#1634 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-01-27 09:22:00 -08:00
Joshua Peek
a1ac635d96
Ensure the full path is used when searching for layouts [ #1803 state:resolved]
2009-01-27 11:08:29 -06:00
Dov Murik
5fe6635e05
Mysql#reconnect is set according to the 'reconnect' key in the connection spec.
...
The 'reconenct' boolean option is read from the connection specification
and is used to set the reconnect attribute of Mysql. The default is
false in order not to change existing application behaviour.
Also, reconnect is set AFTER real_connect is called, so its value sticks
(the mysql gem sets reconnect to false inside real_connect).
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1797 state:committed]
2009-01-27 09:55:25 +13:00
Joshua Peek
57f0b85900
Fix for failing ActionMailer multipart tests
2009-01-26 13:15:29 -06:00
Joshua Peek
a98cd7ca9b
Add localized templates
...
# Default locale
app/views/messages/index.html.erb
# I18n.locale is set to :da (Danish)
app/views/messages/index.da.html.erb
2009-01-25 22:51:21 -06:00
Sven Fuchs
5c062bf100
add #available_locales to I18n and I18n::SimpleBackend, flatten translations load_path when loading translations [ #1714 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-01-25 22:51:21 -06:00
Greg Borenstein
f4bf318db0
add an inspect method to OrderedHash to make it clear that it is not a species of Array
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1782 state:committed]
2009-01-26 16:26:37 +13:00
Stephen Bannasch
4ef9845aa3
Adding AR tests for JDBC connections
...
New connections:
jdbcmysql jdbcpostgresql jdbcsqlite3 jdbcderby jdbch2 jdbchsqldb jdbcpostgresql
To test you will need the native database installed (if one is required),
activerecord-jdbc-adapter and the specific activerecord-jdbc<database>-adapter
for the database you are testing.
Run the tests like this:
jruby -S rake test_jdbcmysql
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1685 state:committed]
2009-01-26 16:08:44 +13:00