Commit Graph

3733 Commits

Author SHA1 Message Date
Nathan Weizenbaum cbded53671 When rendering layouts with blocks, use #capture to avoid assuming that the return value is the block's content.
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
2009-11-05 20:08:04 -08:00
Jeremy Kemper 1c047be0fc If class doesn't have a name, there's no implied layout name, so don't set up a _layout method 2009-11-05 16:12:02 -08:00
Yehuda Katz b12f194c39 Update AC::Middleware to play better with the normal AC::Metal stack. This required stopping to use #call for non-rack-related stuff 2009-11-05 15:38:25 -08:00
Jeremy Kemper a8ed10546d Ruby 1.9: don't assume params are US-ASCII. Hands off the encoding. 2009-11-04 16:27:54 -08:00
Joshua Peek f950d0b4af Fix simple resource named routes for new routing dsl 2009-11-03 11:23:22 -06:00
Jeremy Kemper b540eca588 Consolidate Object#to_param and #to_query core extensions 2009-11-02 17:50:12 -08:00
José Valim 976c264724 Extracted localized_cache.rb from ActionController, added it to AbstractController and made ActionMailer use it. 2009-11-01 02:23:49 +01:00
José Valim 0396004861 Add some basic render_test to AbstractController. 2009-11-01 02:23:48 +01:00
José Valim 0cf16ddb88 Improve AbstractController layouts coverage. 2009-11-01 02:23:48 +01:00
José Valim 43d5504f0a Move all render and layout pieces required in ActionMailer from ActionController to AbstractController. 2009-11-01 02:23:48 +01:00
José Valim 684c2dc208 Remove ActionMailer helpers and rely on AbstractController one. 2009-11-01 02:23:48 +01:00
José Valim a9751a7034 Refactor ActionMailer layout and remove legacy one. 2009-11-01 02:23:47 +01:00
Yehuda Katz 51c24ae3e3 Caching refactoring 2009-10-29 00:44:12 -04:00
Yehuda Katz 8dcf91ca11 First pass at cleaning up action caching 2009-10-28 16:54:00 -04:00
José Valim 427a7385eb Make polymorphic_url work with symbols again and refactor it [#1384 status:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-10-28 14:13:48 -05:00
Yehuda Katz 654b33afc5 New semantics eliminate the need for __send__ 2009-10-28 01:43:46 -07:00
Yehuda Katz c5e73b8976 Reduce TextTemplate cost for simple cases 2009-10-28 00:13:08 -07:00
Yehuda Katz 0b2dd7afd9 Reorganize CSRF a bit 2009-10-28 00:12:35 -07:00
Yehuda Katz cbcb947b00 AS::Notifications.subscribe blocks are now yielded the arguments to pass to AS::Notifications::Event.new 2009-10-27 21:04:53 -07:00
Yehuda Katz c3fa20883e #include should be #extend 2009-10-27 09:21:01 -07:00
Yehuda Katz 4653719aa6 Clean up flash a bit 2009-10-27 09:15:41 -07:00
Yehuda Katz df06e0bd86 Clean up flash a bit 2009-10-26 23:11:52 -07:00
Yehuda Katz 2bdd8fa863 Clean up parameter logging some 2009-10-26 21:31:37 -07:00
Yehuda Katz 000d593621 Clean up and update cookies 2009-10-26 18:01:09 -07:00
Yehuda Katz e1786ee6eb Fixes expires_now and cleans things up a bit 2009-10-26 17:32:42 -07:00
Yehuda Katz d7499f8ee8 Extract #head into its own module and simplify it 2009-10-26 17:13:43 -07:00
Yehuda Katz 60cc86136b Base setup for config object in AC. 2009-10-26 15:47:08 -07:00
Joshua Peek 55ae53baad Fix `rake routes` method name output [#3422 state:resolved] 2009-10-26 11:23:39 -05:00
Joshua Peek 6083a87d63 Splat calls to_a not to_ary [#3423 state:resolved] 2009-10-26 11:16:17 -05:00
Joshua Peek a840c8afbf Restore `rake routes` [#3402 state:resolved] 2009-10-24 18:08:54 -05:00
José Valim 9fbb2c571b Fix error_messages_for when instance variable names are given.
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-10-21 11:18:36 -05:00
Joshua Peek a5c82a9dfb Start rewriting some internal tests to use the new routing dsl 2009-10-20 16:03:55 -05:00
Joshua Peek a1ce52effc New routing dsl 2009-10-20 12:31:23 -05:00
Joshua Peek df68cae0c0 Group together all the old routing dsl logic 2009-10-20 10:46:27 -05:00
Joshua Peek a74022ecd3 Move Routing into AD 2009-10-20 10:14:46 -05:00
Joshua Peek a1df259074 Replace decaying routing internals w/ rack-mount 2009-10-19 23:32:17 -05:00
Jeremy Kemper 418ce487c4 Only undef to_json if it's defined 2009-10-19 18:46:59 -07:00
José Valim cb87302689 Bring agnosticism to error_messages_for. 2009-10-17 13:03:28 -03:00
José Valim 2e37effd72 Unify class_inheritable_accessor and extlib_inheritable_accessor and allow responder to be set in the class level. 2009-10-17 12:54:03 -03:00
Yehuda Katz 7e9e370e03 Make encodings work with Erubis and 1.9 again 2009-10-16 17:28:44 -07:00
Joshua Peek c1261b5484 Use Rails.application where we want a valid rack app 2009-10-16 19:04:28 -05:00
Carl Lerche 2110a524a4 Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the application's object root) 2009-10-16 12:51:02 -07:00
Yehuda Katz a565c19c5b Fix a bug where templates with locales were not being sorted correctly 2009-10-16 11:26:19 -07:00
Jeremy Kemper 71f7e75d95 Merge branch 'master' into orchestra 2009-10-15 17:36:54 -07:00
José Valim 2d7abe245e Renamed Orchestra to Notifications once again [#3321 state:resolved] 2009-10-15 18:51:51 -03:00
Yehuda Katz e1490d4e4c Change config implementation in AV slightly 2009-10-15 14:41:59 -07:00
José Valim a15e02d44a Unify benchmark APIs. 2009-10-15 18:19:25 -03:00
José Valim af0d1fa892 Update Orchestra instrumentations and move part of logging to Orchestra. 2009-10-15 18:18:44 -03:00
José Valim 8b340ab2f6 Revert "Rename Orchestra to Notifications [#3321 state:resolved]"
This reverts commit 8cbf825425.
2009-10-15 18:06:15 -03:00
Yehuda Katz cb8b0f4a5a Make this less brittle and work on 1.8 2009-10-15 13:35:22 -07:00