1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_view/template
Yehuda Katz 1310231c15 Got tests to pass with some more changes.
* 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".
2009-08-15 12:32:02 -07:00
..
handlers Fix pattern to match various magic comment formats 2009-07-01 16:26:15 -07:00
error.rb ActionPack components should no longer have undeclared dependencies. 2009-06-08 13:34:07 -07:00
handler.rb More cleanup of ActionView and reduction in need for blocks in some cases: 2009-08-15 12:32:01 -07:00
handlers.rb Fix ActionMailer Symbol#to_proc instance 2009-05-16 12:13:41 -07:00
inline.rb Begin unifying the interface between ActionController and ActionView 2009-01-22 16:18:10 -06:00
partial.rb Begin unifying the interface between ActionController and ActionView 2009-01-22 16:18:10 -06:00
renderable.rb Separate ActionView::Context so something else can easily be made into an AV context 2009-07-19 22:31:44 +09:00
resolver.rb Got tests to pass with some more changes. 2009-08-15 12:32:02 -07:00
template.rb Caches and cache clearing seems to actually work, but the actual architecture is kind of messy. Next: CLEAN UP. 2009-08-15 12:32:01 -07:00
text.rb Rendering a template from ActionView will default to looking for partials only in the current mime type. 2009-08-09 04:12:08 -03:00