Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get all ActionController partial rendering to use ActionView's partial code. ↵ | Yehuda Katz | 2009-08-07 | 1 | -13/+2 |
| | | | | | | | | | | | | | | Consequences: * It is not possible to always pre-determine the layout before going to ActionView. This was *already* broken for render :partial => @object, :layout => true. This is now handled by overriding render_to_body in layouts.rb and manually injecting the partial's response. This needs to be done in ActionController since ActionController knows enough to get _layout_for_option. There is probably a better abstraction here. * As a result, all partial rendering can correctly restrict their layouts to the mime type of the rendered partial. This could have previously caused a bug in some edge cases. * If other layout-like options are added, they might need to add special code for the case of render :partial. We should try to think of an alternate solution, if possible, but this works for the cases we know of now. | ||||
* | Start cleaning up partial path | Yehuda Katz | 2009-08-07 | 1 | -1/+1 |
| | |||||
* | Clean up render @object a bit more. | Yehuda Katz | 2009-08-07 | 1 | -15/+0 |
| | |||||
* | Remove file that doesn't seem to be used anymore | Yehuda Katz | 2009-08-06 | 1 | -84/+0 |
| | |||||
* | Move AbstractController to a top-level component | Yehuda Katz | 2009-08-06 | 10 | -796/+0 |
| | |||||
* | ActionController::Metal#to_rack converted to #to_a to match normal rack ↵ | Yehuda Katz | 2009-08-06 | 2 | -3/+3 |
| | | | | convention | ||||
* | Update _render_options to reflect the fact that they're public | Yehuda Katz | 2009-08-06 | 1 | -6/+6 |
| | |||||
* | Rename /base to /metal and make base.rb and metal.rb top-level to reflect ↵ | Yehuda Katz | 2009-08-06 | 25 | -0/+0 |
| | | | | their module locations | ||||
* | rename ActionController::Http to ActionController::Metal at Josh's suggestion | Yehuda Katz | 2009-08-06 | 3 | -5/+5 |
| | |||||
* | Replace _action_view with view_context to reflect that it is public and that ↵ | Yehuda Katz | 2009-08-06 | 4 | -9/+8 |
| | | | | it does not need to be an ActionView instance | ||||
* | replace _render_*_from_controller with render_* as they are intended to be ↵ | Yehuda Katz | 2009-08-06 | 1 | -4/+4 |
| | | | | public | ||||
* | Update cache_control to be a Hash of options that is used to build the header. | Yehuda Katz | 2009-08-02 | 3 | -21/+6 |
| | | | | * Significantly simplifies setting and modifying cache control in other areas | ||||
* | Ruby 1.9: fix Content-Length for multibyte send_data streaming | Sava Chankov | 2009-08-01 | 1 | -1/+3 |
| | | | | | | [#2661 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Remove last TODO. | José Valim | 2009-07-29 | 2 | -6/+1 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Add a couple more tests to respond_with. | José Valim | 2009-07-29 | 1 | -11/+8 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Added respond_with. | José Valim | 2009-07-29 | 1 | -26/+139 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Added tests for respond_to class method. | José Valim | 2009-07-29 | 1 | -1/+1 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Ensure that the proper accept header value is set during tests. | José Valim | 2009-07-29 | 1 | -2/+2 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Remove Mime::ALL from Mime::SET. | José Valim | 2009-07-29 | 1 | -0/+1 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Refactor even more Responder. Move mime negotiation to request and added ↵ | José Valim | 2009-07-29 | 1 | -51/+99 |
| | | | | | | respond_to class method. Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Refactor Responder to only calculate available mime types. Those are sent to ↵ | José Valim | 2009-07-29 | 1 | -58/+71 |
| | | | | | | the controller that knows what to do with it (render a block or call default render). Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Merge docrails | Pratik Naik | 2009-07-25 | 6 | -8/+7 |
| | |||||
* | Define ActiveModel API Compliance | Yehuda Katz | 2009-07-20 | 1 | -0/+1 |
| | | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP | ||||
* | Simplify required "ActionView compliant" API | Yehuda Katz | 2009-07-19 | 2 | -17/+8 |
| | |||||
* | Add some missing dependencies | Yehuda Katz | 2009-07-15 | 1 | -0/+1 |
| | |||||
* | Fix AbstractController::Layouts to work when included directly on a controller | Yehuda Katz | 2009-07-15 | 1 | -0/+1 |
| | |||||
* | Centralize commonly used parts of AS in ActionController into ↵ | Yehuda Katz | 2009-07-15 | 5 | -6/+2 |
| | | | | action_controller.rb | ||||
* | Rename method to a more obvious name | Yehuda Katz | 2009-07-11 | 2 | -4/+4 |
| | |||||
* | Allow symbols on routes declaration (:controller and :action values) [#2828 ↵ | Jesús García Sáez | 2009-07-02 | 1 | -0/+1 |
| | | | | | | state:resolved] Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | ||||
* | Accept Symbol for contoller name [#2855 state:resolved] | Yehuda Katz + Carl Lerche | 2009-07-01 | 1 | -1/+1 |
| | | | Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | ||||
* | Make filter_parameters work correctly with array parameters. | Vicente Mundim | 2009-06-27 | 1 | -0/+4 |
| | |||||
* | send_data should set Content-Length as a string | Joshua Peek | 2009-06-25 | 1 | -1/+1 |
| | |||||
* | Missed file from the previous commit 92b229e1251d7d3578c3f73e8185972354e76436 | Pratik Naik | 2009-06-25 | 1 | -0/+15 |
| | |||||
* | Make performance tests work again | Pratik Naik | 2009-06-25 | 1 | -15/+0 |
| | |||||
* | Small changes to get 1.9 passing (for the most part) | Yehuda Katz | 2009-06-23 | 1 | -1/+1 |
| | |||||
* | Fix polymorphic_path doesn't modify options hash [#2099 state:resolved] | =?utf-8?q?Mislav=20Marohni=C4=87?= | 2009-06-21 | 1 | -2/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Remove one more note about deprecated behavior | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -3/+0 |
| | |||||
* | Drive the final stake through @content_for_*'s heart! | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -3/+0 |
| | |||||
* | Cleaning up if defined?(ActionController::Http) blocks from the pre new base ↵ | Yehuda Katz + Carl Lerche | 2009-06-17 | 4 | -49/+27 |
| | | | | era. | ||||
* | Remove some defined?(Http) checks | Yehuda Katz + Carl Lerche | 2009-06-17 | 6 | -55/+13 |
| | |||||
* | RJS doesn't render with an HTML layout by default | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -0/+1 |
| | |||||
* | Move the exceptions for missing template into Compatibility in prep for ↵ | Yehuda Katz + Carl Lerche | 2009-06-16 | 2 | -2/+7 |
| | | | | moving it into a "not-production" module | ||||
* | An exception is raised if a layout is missing only if the layout is missing ↵ | Yehuda Katz + Carl Lerche | 2009-06-16 | 3 | -3/+5 |
| | | | | for all mimes | ||||
* | Exceptions now in an exceptions module | Yehuda Katz + Carl Lerche | 2009-06-16 | 1 | -0/+58 |
| | |||||
* | Merge process2 into process to people's regular tests run :P | Yehuda Katz + Carl Lerche | 2009-06-16 | 3 | -115/+12 |
| | |||||
* | Whoops, I guess we broke layouts ;) | Yehuda Katz + Carl Lerche | 2009-06-15 | 2 | -6/+6 |
| | |||||
* | rm -r controller/base! | Yehuda Katz + Carl Lerche | 2009-06-15 | 18 | -2467/+0 |
| | |||||
* | Keep ActionMailer using the old layouts code until it gets refactored. | Yehuda Katz + Carl Lerche | 2009-06-15 | 1 | -0/+8 |
| | |||||
* | Get tests to run (with failures) without old base around | Yehuda Katz + Carl Lerche | 2009-06-15 | 37 | -1416/+1453 |
| | |||||
* | Finish making things pass with updated internal content_type semantics | Yehuda Katz + Carl Lerche | 2009-06-15 | 4 | -6/+9 |
| |