Sven Fuchs
0cb020b4d6
workaround for picking layouts based on wrong view_paths [ #1974 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-14 18:22:41 -06:00
Levin Alexander
b91d98011c
Remove obsolete silence_warnings wrappers from TZInfo-dependent tests in ActiveSupport [ #1914 state:resolved]
2009-02-14 12:22:39 -06:00
Tekin Suleyman
d676a7f18a
Updated rdoc to reflect changes to form option helpers
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#837 state:committed]
2009-02-14 14:51:40 +13:00
Tekin Suleyman
1525f3816e
Enhanced form option helpers to add support for disabled option tags and use of anonymous functions for specifying selected and disabled values from collections.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-02-14 14:51:35 +13:00
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
Oshoma Momoh
a650852757
Fix loader's LoadError exception message to mention missing plugins and omit loaded plugins.
...
Prior to this change the LoadError message listed all plugins if any one of them was missing.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1921 state:committed]
2009-02-13 21:40:30 +13:00
Pat Nakajima
0c95644396
Changed scaffold generated controller tests to use #to_param.
...
Before, the generated controller tests were calling #id, which
can change over time, making for brittle tests.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1913 state:committed]
2009-02-13 21:37:03 +13:00
Joshua Sierles
11b4a6d74d
Allow memcache-client versions > 1.5.x to override bundled version
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-12 13:16:27 -06: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
Jiri Zajpt
7ed2e6c463
Adding inflection of databases (usually we wouldn't amend the current defaults, but this seems to obvious) [ #1942 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2009-02-12 14:31:27 +01:00
Will Bryant
1a2a71333f
Array#wrap should use #to_ary so association collections and named scopes are not re-wrapped
...
[#1935 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-02-10 18:03:33 -08: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
Gaspard Bucher
1dab1d3803
Fixes a typo in initializer.rb producing error: undefined local variable or method `view_path'.
2009-02-10 12:00:22 -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
Geoff Buesing
3c6bf82115
TimeWithZone#advance: leverage Hash#values_at and non-block form of #any? for a little less line noise, and a slight speedup (thanks raggi and Roman2K)
2009-02-09 23:12:47 -06:00
Geoff Buesing
16cc69af6f
Changelog update for previous commit
2009-02-09 23:11:21 -06:00
Zachary Zolton
73c91429a1
Time#to_s(:rfc822) uses #formatted_offset instead of unreliable and non-standard %z directive [ #1899 state:resolved]
2009-02-09 22:38:43 -06:00
Joshua Peek
5c63be1f92
Still need to setup view paths
2009-02-09 14:53:14 -06: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
Geoff Buesing
5120429c31
TimeWithZone#advance: use #any? instead of #detect
2009-02-08 23:40:42 -06:00
Geoff Buesing
887434f75f
TimeWithZone: eliminate unnecessary flatten
2009-02-08 23:32:54 -06:00
Geoff Buesing
5394fcb19a
TimeWithZone: use Array#any? instead of detect, since we don't care about the block return value
2009-02-08 22:19:46 -06:00
Levin Alexander
18d6369344
Make TimeWithZone#to_formatted_s an alias to TimeWithZone#to_s [ #1796 state:resolved]
2009-02-08 11:36:57 -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
f98d8ee72b
Fix up failing tests broke by 2316e7d
2009-02-07 00:35:15 -06:00
Joshua Peek
2316e7dfb1
Fix FCGI handler with lighttpd [ #1854 state:resolved]
2009-02-07 00:25:07 -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
78c6f48b26
Handle either error string or array
2009-02-06 20:26:24 -08:00
Jeremy Kemper
24ac1d6bdc
Oops, don't yield per expression
2009-02-06 17:01:34 -08:00
Jeremy Kemper
49afe58d0b
Test jdbc adapters by default on jruby
2009-02-06 13:32:07 -08:00
Jeremy Kemper
a5c98bb063
Test AR integration with jdbcsqlite3 adapter on jruby
2009-02-06 13:27:50 -08:00
Jeremy Kemper
9c2918d974
Fix example and exception message
2009-02-06 12:50:45 -08:00
Jeremy Kemper
4b48f09a9a
Work around mock request hashing problem on 1.9 and jruby
2009-02-06 12:47:01 -08:00
Jeremy Kemper
f7d509882e
Prefer tap to returning
2009-02-06 12:18:24 -08:00