Tekin Suleyman
d206b80a36
DRY up form option helper tests
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-02-14 14:51:35 +13:00
Sam Oliver
f04346d8b9
Stops date select helpers from defaulting the selected date to today if :prompt option has been used
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#561 state:resolved]
2009-02-13 22:04:27 +13:00
Lance Ivy
5dbc9d40a4
Changed API of NestedAttributes to take an array, or hash with index keys, of hashes that have the id on the inside of the attributes hash and updated the FormBuilder to produce such hashes. Also fixed NestedAttributes with composite ids.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com >
[#1892 state:committed]
2009-02-13 21:47:56 +13:00
thedarkone
3942cb406e
Port fast reloadable templates from rails-dev-boost.
2009-02-12 13:04:12 -06:00
Mike Gunderloy
b1d41bdfb0
Remove space from the test name [ #1953 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-02-12 17:47:52 +01:00
Joshua Peek
ff3fb6c5f3
Reapply 0d5b3e6
2009-02-10 13:36:50 -06:00
Joshua Peek
5689e681e9
Update vendored rack
2009-02-10 13:18:13 -06:00
Joshua Peek
f400209084
Move checkbox hidden field before the actual checkbox so the actual value doesn't get clobbered [ #1863 state:resolved]
2009-02-10 13:10:46 -06:00
Andrew White
199e750d46
Fix some edge cases when the same template is called with different local assigns
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-10 12:09:49 -06:00
Joshua Peek
0d5b3e6b41
Make sure vendored rack is at the front of the load path
2009-02-10 10:48:54 -06:00
David Heinemeier Hansson
7527cdf79c
Added partial scoping to TranslationHelper#translate, so if you call translate('.foo') from the people/index.html.erb template, you'll actually be calling I18n.translate(people.index.foo) [DHH]
2009-02-10 12:57:12 +01:00
Andrew White
893e9eb995
Improve view rendering performance in development mode and reinstate template recompiling in production [ #1909 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-09 14:20:30 -06:00
Joshua Peek
5fbacde2af
Session LazyHash#inspect triggers the hash to load
2009-02-07 16:47:44 -06:00
Joshua Peek
acd0612cde
Don't add vendored rack to load path
2009-02-07 16:22:33 -06:00
Joshua Peek
524d8edf68
Update bundled Rack for Ruby 1.9 spec changes
2009-02-07 16:18:09 -06:00
Joshua Peek
0edb0a4fac
Deprecate ActionController::Response#set_cookie :http_only option infavor of :httponly
2009-02-07 15:37:54 -06:00
Joshua Peek
3c625d65e8
Ruby 1.9 compat: removed redundant nested repeat operator
2009-02-07 15:33:11 -06:00
Joshua Peek
e4a7c0bb5b
~ backup files don't clobber original templates [ #1818 state:resolved]
2009-02-07 12:06:35 -06:00
Andrew White
5f5d2d30a0
Move cleanup before prepare_dispatch so that constants are not loaded twice [ #1898 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-07 11:41:00 -06:00
José Valim
50f51ff950
Render implicit html template when xhr request now supports localization [ #1886 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-07 11:37:02 -06:00
Joshua Peek
2277fbedbe
Temporarily bundle Rack 1.0 prerelease for testing
2009-02-07 00:08:28 -06:00
José Valim
24f2e676f7
Added support to dashed locales in templates localization [ #1888 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-06 23:23:50 -06:00
Joshua Peek
43c09383ce
Ensure session id is set in session options hash [ #1880 state:resolved]
2009-02-06 23:16:58 -06:00
Jeremy Kemper
a5c98bb063
Test AR integration with jdbcsqlite3 adapter on jruby
2009-02-06 13:27:50 -08:00
Eugene Pimenov
b1c1e3deb7
Ruby 1.9 compat: change encoding of action_view/renderable to utf-8, so erb templates can use utf-8 properly
...
[#1881 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-02-06 11:03:41 -08:00
Eugene Pimenov
ae36fcedce
Ruby 1.9 compat: call bytesize for content_length
...
[#1881 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-02-06 10:28:09 -08:00
Joshua Peek
7259baab47
Restore stale session check and move after dispatch development cleanups before the request
2009-02-05 20:22:43 -06:00
Andrew White
bccd2c54b2
Use Path rather than EagerPath when cache_classes == false so other view paths are properly recompiled in development mode [ #1764 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-05 19:56:22 -06:00
Pascal Ehlert
d15d53cf81
Allowing an object to be passed explicitly to a fields_for with nested_attributes on one-to-one associations
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1849 state:committed]
2009-02-06 13:26:58 +13:00
Andrew White
7aa847fab4
Eliminate unnecessary File.exist? when correct file extension given [ #1879 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-05 15:38:29 -06:00
Adam McCrea
06182ea02e
implicitly rendering a js response should not use the default layout [ #1844 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-05 15:23:05 -06:00
David Heinemeier Hansson
6db78e8c02
Added tests from Andrew Whites fix [ #1385 state:committed]
2009-02-05 20:37:57 +01:00
chris finne
b80fa817d4
Fix a syntax error in current_page?() that was prevent matches against URL's with multiple query parameters [ #1868 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2009-02-05 20:31:04 +01:00
David Heinemeier Hansson
46288f5935
Remove double parenthesis in docs
2009-02-05 20:27:34 +01:00
Jeremy Kemper
278186534c
Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.
2009-02-03 18:40:22 -08:00
Jeremy Kemper
34a37ea9e8
Workaround jruby issue with protected module attr_accessor showing up as public in included class
2009-02-02 22:39:02 -08:00
Jeremy Kemper
2259ecf368
Don't assume ActiveRecord is available
2009-02-02 22:26:57 -08:00
José Valim
2ecc678ed6
Added localized rescue (404.da.html) [ #1835 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2009-02-02 17:56:22 +01:00
Pratik Naik
beca1f2e15
Template#mime_type should not use Mime::Type when Action Controller is not included
2009-02-02 00:21:03 +00:00
David Heinemeier Hansson
ed5fa2fe33
Mark CHANGELOGs for release
2009-02-01 22:06:40 +01: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
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
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