Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Cleanup route reloading in tests. Prefer with_routing over using ↵ | Joshua Peek | 2009-08-16 | 12 | -134/+129 |
| | | | | ActionController::Routing::Routes directly | ||||
* | Axe "best fit" generation support | Joshua Peek | 2009-08-15 | 1 | -12/+0 |
| | |||||
* | Got tests to pass with some more changes. | Yehuda Katz | 2009-08-15 | 3 | -38/+21 |
| | | | | | | | | | | | | | | | | * request.formats is much simpler now * For XHRs or Accept headers with a single item, we use the Accept header * For other requests, we use params[:format] or fallback to HTML * This is primarily to work around the fact that browsers provide completely broken Accept headers, so we have to whitelist the few cases we can specifically isolate and treat other requests as coming from the browser * For APIs, we can support single-item Accept headers, which disambiguates from the browsers * Requests to an action that only has an XML template from the browser will no longer find the template. This worked previously because most browsers provide a catch-all */*, but this was mostly accidental behavior. If you want to serve XML, either use the :xml format in links, or explicitly specify the XML template: render "template.xml". | ||||
* | More cleanup of ActionView and reduction in need for blocks in some cases: | Yehuda Katz | 2009-08-15 | 1 | -9/+0 |
| | | | | | | | | * only one of partial_name or :as will be available as a local * `object` is removed * Simplify _layout_for in most cases. * Remove <% render :partial do |args| %> * <% render :partial do %> still works fine | ||||
* | Attempt to rewrite most of the highly coupled router segments tests | Joshua Peek | 2009-08-14 | 1 | -741/+221 |
| | |||||
* | Kill routing timed tests | Joshua Peek | 2009-08-14 | 1 | -50/+3 |
| | |||||
* | Merge branch 'master' of git://github.com/rails/rails | José Valim | 2009-08-13 | 1 | -1/+0 |
|\ | |||||
| * | More perf work: | Yehuda Katz | 2009-08-11 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move #set_cookie and #delete_cookie inline to optimize. These optimizations should almost certainly be sent back upstream to Rack. The optimization involves using an ivar for cookies instead of indexing into the headers each time. * Was able to use a bare Hash for headers now that cookies have their own joining semantics (some code assumed that the raw cookies were an Array). * Cache blankness of body on body= * Improve expand_cache_key for Arrays of a single element (common in our case) * Use a simple layout condition check unless conditions are used * Cache visible actions * Lazily load the UrlRewriter * Make etag an ivar that is set on prepare! | ||||
* | | Ensure collections are not treated as nested resources. | José Valim | 2009-08-13 | 1 | -7/+20 |
|/ | |||||
* | Deprecate router generation "best match" sorting | Joshua Peek | 2009-08-09 | 3 | -7/+9 |
| | |||||
* | Added both the documentation and a test case for the collection path name ↵ | Hugo Peixoto | 2009-08-09 | 1 | -0/+44 |
| | | | | | | | | customization feature. [#1218 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Make http digest work with different server/browser combinations | José Valim | 2009-08-09 | 1 | -6/+29 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Clean up partial object some more; replace passing around a block to a ↵ | Yehuda Katz | 2009-08-09 | 1 | -1/+0 |
| | | | | single block ivar | ||||
* | Add :redirect to the testable RJS statements [#2612 state:resolved] | Jon Wood | 2009-08-09 | 1 | -0/+7 |
| | | | | | | | Example : assert_select_rjs :redirect, root_path Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Fix HTTP basic authentication for long credentials [#2572 state:resolved] | Jan Schwenzien | 2009-08-09 | 1 | -0/+25 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Add test ensuring redirect_to uses the given protocol [#2886] | Dan Croak | 2009-08-08 | 1 | -0/+10 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Merge commit 'jose/responder' | Yehuda Katz | 2009-08-08 | 1 | -5/+5 |
|\ | |||||
| * | Renamed ActionController::Renderer to ActionController::Responder and ↵ | José Valim | 2009-08-08 | 1 | -5/+5 |
| | | | | | | | | ActionController::MimeResponds::Responder to ActionController::MimeResponds::Collector. | ||||
* | | Fixes "Cached fragment hit" written to log even if fragment is not cached ↵ | Yehuda Katz | 2009-08-08 | 1 | -0/+15 |
|/ | | | | (Erik Andrejko) [#2917 state:resolved] | ||||
* | Ruby 1.9 compat: fix route recognition encoding test | Jeremy Kemper | 2009-08-07 | 1 | -1/+1 |
| | |||||
* | Renamed presenter to renderer, added some documentation and defined its API. | José Valim | 2009-08-07 | 1 | -4/+18 |
| | |||||
* | Encapsulate respond_with behavior in a presenter. | José Valim | 2009-08-07 | 1 | -22/+18 |
| | |||||
* | Add destroyed? to ActiveRecord, include tests for polymorphic urls for ↵ | José Valim | 2009-08-07 | 3 | -75/+33 |
| | | | | destroyed objects and refactor mime responds tests and documentation. | ||||
* | Add nagivational behavior to respond_with. | José Valim | 2009-08-07 | 2 | -16/+88 |
| | |||||
* | Merge branch 'master' of git://github.com/rails/rails into old | José Valim | 2009-08-07 | 4 | -62/+20 |
|\ | |||||
| * | Replace _render_template_with_layout with _render_template since the layout ↵ | Yehuda Katz | 2009-08-07 | 2 | -2/+4 |
| | | | | | | | | is optional | ||||
| * | Clean up render @object a bit more. | Yehuda Katz | 2009-08-07 | 1 | -57/+0 |
| | | |||||
| * | Update cache_control to be a Hash of options that is used to build the header. | Yehuda Katz | 2009-08-02 | 2 | -2/+2 |
| | | | | | | | | * Significantly simplifies setting and modifying cache control in other areas | ||||
| * | Ruby 1.9: fix encoding for test_file_stream | Jeremy Kemper | 2009-08-01 | 1 | -1/+2 |
| | | |||||
| * | Ruby 1.9: fix Content-Length for multibyte send_data streaming | Sava Chankov | 2009-08-01 | 1 | -0/+12 |
| | | | | | | | | | | | | [#2661 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | | Added tests for nested resources. | José Valim | 2009-07-31 | 1 | -12/+48 |
| | | |||||
* | | Allow respond_with to deal with http verb accordingly. | José Valim | 2009-07-31 | 1 | -3/+62 |
|/ | |||||
* | Remove last TODO. | José Valim | 2009-07-29 | 1 | -1/+1 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Add a couple more tests to respond_with. | José Valim | 2009-07-29 | 1 | -0/+38 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Added respond_with. | José Valim | 2009-07-29 | 1 | -1/+69 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Added tests for respond_to class method. | José Valim | 2009-07-29 | 1 | -2/+68 |
| | | | | 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 | -10/+12 |
| | | | | | | 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 | -3/+3 |
| | | | | | | the controller that knows what to do with it (render a block or call default render). Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | AMo conversion helper | Joshua Peek | 2009-07-21 | 2 | -2/+4 |
| | |||||
* | Define ActiveModel API Compliance | Yehuda Katz | 2009-07-20 | 2 | -2/+2 |
| | | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP | ||||
* | Allow symbols on routes declaration (:controller and :action values) [#2828 ↵ | Jesús García Sáez | 2009-07-02 | 1 | -0/+10 |
| | | | | | | 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 | -0/+11 |
| | | | 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 | -1/+2 |
| | |||||
* | send_data should set Content-Length as a string | Joshua Peek | 2009-06-25 | 1 | -1/+1 |
| | |||||
* | Remove deprecated implicit ivar assignment | Joshua Peek | 2009-06-25 | 1 | -7/+0 |
| | |||||
* | Cleaning up more tests and code that needed to work in both old and new base | Yehuda Katz + Carl Lerche | 2009-06-17 | 5 | -82/+31 |
| | |||||
* | Finish making pending tests pass | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -7/+7 |
| | |||||
* | RJS doesn't render with an HTML layout by default | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -5/+3 |
| | |||||
* | Fixing pending tests and fixed some formats / partial rendering semantics | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -19/+3 |
| | |||||
* | Fix pending test about content-type | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -5/+19 |
| |