David Chelimsky
849ab92942
Eliminate false positives when passing symbols to assert_template
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-03 13:46:12 +02:00
Lawrence Pit
9bd91b00b8
Favor %{} in all code instead of (deprecated) {{}} as interpolation syntax for I18n
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-03 13:37:32 +02:00
José Valim
8ae9b05fa0
Make backtrace_cleaner work as expected. Prior to this patch, the Full Trace rarely showed the full trace. Also, increase performance considerably.
2010-05-03 12:59:48 +02:00
David Chelimsky
8672a97e11
add NullResolver
...
[#4523 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-02 22:45:54 +02:00
David Chelimsky
91125f9927
move FixtureResolver to a file that is accessible outside Rails' own tests
...
[#4522 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-02 22:45:54 +02:00
Justin George
731d4392e4
Change event namespace ordering to most-significant first [ #4504 state:resolved]
...
More work still needs to be done on some of these names
(render_template.action_view and render_template!.action_view particularly)
but this allows (for example) /^sql/ to subscribe to all
the various ORMs without further modification
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-02 22:45:54 +02:00
José Valim
a61a6d206b
Speed up I18n helpers in views and add entry to CHANGELOG.
2010-05-01 22:38:57 +02:00
José Valim
13867a3f5f
Use %{} syntax in I18n (faster) instead of {{}}.
2010-05-01 12:54:52 +02:00
Carl Lerche
6c280f3398
RouteSet does not raise ActionController::RoutingError when no routes match anymore. Instead, it follows the X-Cascade convention. ShowExceptions checks for X-Cascade so that the routing error page can still be displayed.
2010-04-30 16:40:42 -07:00
Jeremy Kemper
1d2257deeb
Merge remote branch 'technoweenie/http_token_authentication'
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-30 13:46:37 -07:00
wycats
0fe8827bf3
Merge branch 'master' of github.com:rails/rails
2010-04-30 11:17:58 -07:00
rick
8d236ccb84
add HTTP Token Authorization support to complement Basic and Digest Authorization.
2010-04-30 07:46:30 -07:00
Neeraj Singh
a003a39bac
removing the extra assignment statement [ #4432 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-30 13:20:14 +02:00
Neeraj Singh
68c96fad55
Fix form builder and form helpers inconsistencies [ #4432 state:resolved]
...
* datetime_select and select_datetime should be consistent as much as possible
* date_select and select_date should be consistent as much as possible
* time_select and select_time should be consistent as much as possible
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-29 13:40:55 +02:00
Neeraj Singh
d793d30776
ActionCachingTestController rescues from all exceptions. Making sure that all the tests check for valid response. [ #4468 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-29 12:48:34 +02:00
Jeremy Kemper
fe93cd8bc5
Fix prototype grep depending on JSON encoding regexp as JavaScript regexp
2010-04-27 22:52:37 -07:00
Nathan Weizenbaum
ef5dadaf93
Only run load hooks once a file has been fully loaded.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-27 21:37:40 -07:00
wycats
91963e9e33
Merge branch 'master' of github.com:rails/rails
2010-04-26 23:32:30 -07:00
David Chelimsky
176fbfd66f
extract ActionController::TestCase::Behavior
...
- this makes it possible for other test frameworks
to hook into testing facilities provided by Rails
without having to subclass AC::TestCase.
[#4474 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-26 09:52:38 +02:00
David Chelimsky
864bd9c21f
allow unsubscribe by name or subscription [ #4433 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-24 22:06:24 -07:00
Jeremy Kemper
72a3e4b77b
Rename fieldWithErrors style to field_with_errors. Remove unused alert style.
2010-04-24 15:02:12 -07:00
Nicolas Sanguinetti
d5d717161d
Allow :remote => false to be passed to link_to
...
And add tests for `button_to` and `form_tag` which currently behave as
expected, so we avoid a regression.
Signed-off-by: wycats <wycats@gmail.com >
2010-04-22 15:29:59 -07:00
Santiago Pastorino
ebf9820f7e
HWIA symbolize_keys now returns a hash so no need to do this anymore
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-22 09:07:53 -07:00
Santiago Pastorino
920df0a475
Make ActionDispatch url_for use HWIA symbolize_keys
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-22 09:06:55 -07:00
J Smith
275e839b8d
Ensure that url_for uses symbolized keys in the controller. [ #4391 ]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-22 16:47:36 +02:00
José Valim
81fb742488
Always downstream given options in :json, :xml and :js renderers and add tests for it.
2010-04-22 12:12:38 +02:00
José Valim
4163ccec23
Clean up the config object in ActionPack. Create config_accessor which just delegates to the config object, reducing the number of deprecations and add specific tests.
2010-04-22 12:00:13 +02:00
Santiago Pastorino
5c9c30ac65
url_for now works with HashWithIndifferentAccess ht jay [ #4391 state:committed]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-21 17:09:14 -07:00
Santiago Pastorino
961aa70e4a
Some require indifferent_access added
...
Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
2010-04-21 07:45:29 -07:00
Santiago Pastorino
5467728d83
require without .rb
...
Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
2010-04-21 07:41:45 -07:00
wycats
62916ecbbe
It should be possible to render :json with options
2010-04-20 22:29:00 -07:00
José Valim
da32661f10
Remove only formats in shortcuts and do it just once.
2010-04-20 21:19:48 +02:00
Carl Lerche
eb83c9cf42
Merge remote branch 'spastorino/master'
2010-04-18 13:04:04 -07:00
Carl Lerche
d32a4cbaa5
Merge branch 'master' of github.com:rails/rails
2010-04-18 13:02:37 -07:00
Santiago Pastorino
978c80d6e3
Missing require added
2010-04-18 14:02:46 -03:00
Santiago Pastorino
9c4ac84e49
perform_caching should be accessed through the controller here
2010-04-17 23:40:03 -03:00
Santiago Pastorino
4309c1fda3
perform_caching is now delegated to config on instance and class level
2010-04-17 23:40:03 -03:00
Diego Carrion
8c7e8976e9
added shorthand support for routes like /projects/status(.:format)
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-17 17:53:08 -07:00
David Chelimsky
4327ad51ab
access assigns as a method or hash, with strings or symbols [ #4431 state:resolved]
2010-04-17 15:59:10 -04:00
wycats
457f7709e9
Missing requires
2010-04-16 21:59:09 -04:00
Sam Elliott
c16c248912
mail_to with :encode => :javascript now outputs safe html
...
Signed-off-by: Carl Lerche <carllerche@mac.com >
2010-04-16 15:53:55 -07:00
Carl Lerche
ac015b1d07
Revert "Avoid deprecation warnings and potential TypeErrors [ #4404 state:resolved]"
...
Revert "protected instance variables added to the deprecated config accessor
This reverts commit 4bce5ba600 and 0ee2d3c89a .
2010-04-16 15:39:00 -07:00
Kieran Pilkington
001ca893c6
Mark the result of grouped_options_for_select as HTML safe [ #4322 state:committed]
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-04-16 15:05:41 -07:00
Santiago Pastorino
9c08ccd889
page_cache_extension is delegating to config so no need to deprecate
2010-04-16 11:03:16 -03:00
Mislav Marohnić
8a91ccf976
add missing requires to Rescuable and RouteSet [ #4415 state:committed]
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-04-16 06:11:38 -07:00
Santiago Pastorino and Carl Lerche
0ea434e2f4
Make perform_caching work again, with the tests passing and backward compatible
2010-04-15 18:25:08 -03:00
Santiago Pastorino and Carl Lerche
005c2bac46
Revert "logger added to the deprecated config accessor" we need a major refactor to get this working
...
This reverts commit 68f4e046a7 .
2010-04-15 16:58:31 -03:00
Nicolas Sanguinetti
4bce5ba600
Avoid deprecation warnings and potential TypeErrors [ #4404 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2010-04-15 14:51:25 +01:00
Santiago Pastorino
68f4e046a7
logger added to the deprecated config accessor
2010-04-14 22:49:53 -07:00
Santiago Pastorino
0ee2d3c89a
protected instance variables added to the deprecated config accessor
2010-04-14 22:49:53 -07:00