Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Raise ArgumentError if an invalid method is specified as part of a route's ↵ | Tom Ward | 2008-07-18 | 2 | -4/+20 |
| | | | | | | conditions. Also raise an error if HEAD is specified as the method, as rails routes all HEAD requests through the equivalent GET, though doesn't return the response body [#182 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | etag! and last_modified! conditional GET helpers | Jeremy Kemper | 2008-07-17 | 2 | -8/+47 |
| | |||||
* | All 2xx requests are considered successful [#217 state:resolved] | Joshua Peek | 2008-07-16 | 1 | -1/+1 |
| | |||||
* | Use fully-qualified controller name when logging. [#600 state:resolved] | Ripta Pasay | 2008-07-17 | 1 | -1/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Allow Dispatcher exceptions to be handled in application.rb using rescue_from | Pratik Naik | 2008-07-16 | 1 | -12/+16 |
| | |||||
* | Merge with docrails. | Pratik Naik | 2008-07-16 | 12 | -22/+64 |
| | |||||
* | Make RackRequest#request_method respect _method | Pratik Naik | 2008-07-16 | 1 | -4/+0 |
| | |||||
* | RackResponse should not contain Status header | Pratik Naik | 2008-07-16 | 1 | -1/+1 |
| | |||||
* | RackRequest#content_type should return Mime::Type | Pratik Naik | 2008-07-16 | 1 | -1/+1 |
| | |||||
* | Get buffer for fragment cache from template's @output_buffer | Joshua Peek | 2008-07-15 | 1 | -3/+1 |
| | |||||
* | Restore the more readable before_ and after_filters methods since they ↵ | Jeremy Kemper | 2008-07-14 | 1 | -10/+2 |
| | | | | aren't called frequently | ||||
* | Small tweak to e0fef66 | Joshua Peek | 2008-07-13 | 1 | -3/+3 |
| | |||||
* | Made ActionView::Base#first_render a little more private. And added ↵ | Joshua Peek | 2008-07-13 | 2 | -13/+6 |
| | | | | _last_render to track the most recent render. Will fix #609 as a side effect. [#609 state:resolved] | ||||
* | Set config.action_view.warn_cache_misses = true to receive a warning if you ↵ | Joshua Peek | 2008-07-12 | 1 | -2/+2 |
| | | | | perform an action that results in an expensive disk operation that could be cached | ||||
* | Refactor template preloading. New abstractions include Renderable mixins and ↵ | Joshua Peek | 2008-07-12 | 4 | -14/+9 |
| | | | | a refactored Template class. | ||||
* | Restore support for partial matches in assert_redirected_to | Michael Koziarski | 2008-07-12 | 1 | -2/+9 |
| | | | | If both the actual redirection and the asserted redirection are hashes, succeed if the asserted redirection is a strict subset of the actual redirection. | ||||
* | Added notes to Routing documentation and routes.rb regarding defaults routes ↵ | Clemens Kofler | 2008-07-10 | 1 | -0/+4 |
| | | | | | | opening the whole application for GET requests Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Move accept header parsing shortcut to Mime::Type.parse | Jeremy Kemper | 2008-07-09 | 2 | -41/+43 |
| | |||||
* | Don't repeatedly convert only/except options | Jeremy Kemper | 2008-07-09 | 1 | -3/+28 |
| | |||||
* | Remove some Symbol#to_proc usage in runtime code. [#484 state:resolved] | Cheah Chu Yeow | 2008-07-09 | 2 | -10/+18 |
| | |||||
* | Request#accepts special-cases a single mime type | Jeremy Kemper | 2008-07-09 | 1 | -4/+10 |
| | |||||
* | Reenable the use of the Accept header to give people a chance to update ↵ | Michael Koziarski | 2008-07-09 | 1 | -3/+3 |
| | | | | their applications and provide feedback. | ||||
* | Ensure url_for(nil) falls back to url_for({}). [#472 state:resolved] | Cheah Chu Yeow | 2008-07-09 | 1 | -1/+2 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Disable the Accept header by default | Michael Koziarski | 2008-07-07 | 4 | -14/+41 |
| | | | | | | | | The accept header is poorly implemented by browsers and causes strange errors when used on public sites where crawlers make requests too. You should use formatted urls (e.g. /people/1.xml) to support API clients. Alternatively to re-enable it you need to set: config.action_controller.use_accept_header = true A special case remains for ajax requests which will have a javascript format for the base resource (/people/1) if the X-Requested-With header is present. This lets ajax pages still use format.js despite there being no params[:format] | ||||
* | Fix rdoc for Filters::ClassMethods | Jeremy Kemper | 2008-07-04 | 1 | -195/+194 |
| | |||||
* | Simplify the implementation of assert_redirected_to to normalise the urls ↵ | Michael Koziarski | 2008-07-04 | 2 | -91/+37 |
| | | | | | | before comparing. Also allows for a simpler implementation of redirect_to without most of the recursion. Also allows for assert_redirected_to @some_record | ||||
* | Remove old broken follow_redirect from functional tests. Still works in ↵ | Michael Koziarski | 2008-07-04 | 1 | -9/+0 |
| | | | | | | integration tests. The follow_redirect in functional tests only worked if you used redirect_to :id=>foo, :action=>bar, rather than named routes. | ||||
* | Allow caches_action to accept cache store options. [#416 state:resolved] | josevalim | 2008-07-04 | 1 | -7/+11 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Reduce the number of callsites for new TemplateFiles | Joshua Peek | 2008-07-03 | 1 | -2/+3 |
| | |||||
* | Move template_format logic out to the request so it's alongside the ↵ | Michael Koziarski | 2008-07-03 | 1 | -0/+13 |
| | | | | | | 'regular' request format. Use xhr? instead of the expensive trip through Request#accepts. | ||||
* | Remove unneeded ObjectWrapper class. | Michael Koziarski | 2008-07-03 | 1 | -1/+1 |
| | | | | Was previously needed to work around the semantics of a deprecated (now removed) API to render :partial | ||||
* | Use :namespace instead of :path_prefix for finding controller. [#544 ↵ | Tarmo Tänav | 2008-07-03 | 1 | -2/+1 |
| | | | | | | | | | | state:resolved] :namespace is supposed to be the module where controller exists. :path_prefix can contain anything, including variables, which makes it unsuitable for determining the module for a controller. Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Deprecate :use_full_path render option. The supplying the option no longer ↵ | Joshua Peek | 2008-07-02 | 1 | -5/+5 |
| | | | | has an effect. | ||||
* | Added application/jsonrequest as a synonym for application/json | Mike Subelsky | 2008-07-02 | 1 | -1/+2 |
| | | | | [#536 state:resolved] | ||||
* | Add :as option to render a collection of partials with a custom local ↵ | Pratik Naik | 2008-07-02 | 1 | -1/+4 |
| | | | | variable name. [#509 state:resolved] [Simon Jefford, Pratik Naik] | ||||
* | Make sure render :template works with :locals. [#524 state:resolved] | Tim Haines | 2008-07-02 | 1 | -1/+4 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Improved test coverage and added RackRequest support for CGI environment ↵ | Joshua Peek | 2008-07-01 | 1 | -5/+30 |
| | | | | variables. | ||||
* | Hide InlineTemplate class from ActionController and use ActionView's render API | Joshua Peek | 2008-06-25 | 1 | -2/+1 |
| | |||||
* | Made ActionView::Base#render_file private | Joshua Peek | 2008-06-25 | 5 | -7/+7 |
| | |||||
* | Patched HTML::Document#initialize call to Node.parse so that it includes the ↵ | Jimmy Baker | 2008-06-24 | 1 | -1/+1 |
| | | | | strict argument. [#330] | ||||
* | Improve readability | Jeremy Kemper | 2008-06-24 | 1 | -8/+10 |
| | |||||
* | Fixed polymorphic_url to be able to handle singleton resources. | Tammer Saleh | 2008-06-22 | 1 | -12/+25 |
| | | | | | | | Example usage: polymorphic_url([:admin, @user, :blog, @post]) # => admin_user_blog_post_url(@user, @post) [#461 state:resolved] | ||||
* | fix merge | rick | 2008-06-19 | 10 | -48/+71 |
|\ | |||||
| * | Replaced TemplateFinder abstraction with ViewLoadPaths | Joshua Peek | 2008-06-17 | 3 | -16/+12 |
| | | |||||
| * | Fix url_for with no arguments when default_url_options is not explicitly ↵ | Luke Redpath | 2008-06-17 | 1 | -2/+2 |
| | | | | | | | | | | | | defined. [#339 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
| * | verify :redirect_to => :back should redirect to the referrer. [#280 ↵ | Amos King | 2008-06-17 | 1 | -1/+1 |
| | | | | | | | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
| * | Correct code example in dom_id docs. [#437 state:resolved] | Andrew Kaspick | 2008-06-17 | 1 | -2/+2 |
| | | |||||
| * | Performance: integration test benchmarking and profiling. [Jeremy Kemper] | Jeremy Kemper | 2008-06-14 | 2 | -4/+21 |
| | | |||||
| * | Make rescue template xhtml compatible [Sam Ruby] [#415 status:resolved] | Pratik Naik | 2008-06-13 | 1 | -1/+1 |
| | | |||||
| * | Revert "Lazy load cache and session stores" | David Heinemeier Hansson | 2008-06-12 | 1 | -2/+7 |
| | | | | | | | | This reverts commit 19895f087c338d8385dff9d272d30fb87cb10330. |