aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Consistently use the framework's configured logger and avoid reverting to ↵Joshua Peek2008-08-181-1/+2
| | | | RAILS_DEFAULT_LOGGER unless necessary.
* pass yielded arguments to block for ActionView::Base#render with :layout ↵Ryan Bates2008-08-171-15/+8
| | | | | | [#847 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Tidy up ActionMailer rendering logic to take advantage of view path cache ↵Joshua Peek2008-08-061-1/+4
| | | | instead of using file system lookups
* Fixed bc5896e, and added test case for the caching bug it originally introduced.Joshua Peek2008-07-231-0/+3
|
* Revert 'bc5896e'Joshua Peek2008-07-231-3/+0
|
* Memoize ActionView::Base pick_template and find_partial_path for rendering ↵Joshua Peek2008-07-221-2/+5
| | | | duration
* Fixed spelling mistake in deprecation warning [#381 state:resolved]Joshua Peek2008-07-191-4/+6
|
* Set the response content type to that of found template if not explicitly ↵Tom Ward2008-07-181-0/+6
| | | | | | set elsewhere [#444 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Removed lagacy TemplateHandler#render API. Left in a legacy TemplateHandler ↵Joshua Peek2008-07-181-2/+2
| | | | and Compilable stub so plugins will not have to change anything.
* Wrap AssetTagHelper's computed public path cache in a threadsafe storeJoshua Peek2008-07-171-4/+0
|
* Merge with docrails.Pratik Naik2008-07-161-1/+1
|
* Removed config.action_view.cache_template_loading, use config.cache_classes ↵Joshua Peek2008-07-151-3/+4
| | | | instead
* Check first render format and extension. Fixes failing ActionMailer test.Joshua Peek2008-07-131-1/+1
|
* Made ActionView::Base#first_render a little more private. And added ↵Joshua Peek2008-07-131-3/+3
| | | | _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 Peek2008-07-121-2/+20
| | | | perform an action that results in an expensive disk operation that could be cached
* Refactor template preloading. New abstractions include Renderable mixins and ↵Joshua Peek2008-07-121-35/+44
| | | | a refactored Template class.
* Changed ActionView::TemplateHandler#render API method signature to ↵Joshua Peek2008-07-111-2/+2
| | | | render(template, local_assigns = {})
* Disable the Accept header by defaultMichael Koziarski2008-07-071-7/+3
| | | | | | | | 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]
* Lookup compiled methods in CompiledTemplates instance methods set instead of ↵Joshua Peek2008-07-051-4/+0
| | | | using a "methods_names" hash
* Do not stat template files in production mode before rendering. You will no ↵Joshua Peek2008-07-051-1/+1
| | | | longer be able to modify templates in production mode without restarting the server
* Removed unused template_args variableJoshua Peek2008-07-051-2/+0
|
* Revert "Moved TemplateHandlers to Base"Joshua Peek2008-07-031-1/+0
| | | | | | | | | This reverts commit 42d215a925a228778e43f7040f03ad8f3eb5341c. Conflicts: actionpack/lib/action_view/inline_template.rb actionpack/lib/action_view/template.rb
* Reduce the number of callsites for new TemplateFilesJoshua Peek2008-07-031-11/+17
|
* Use render on InlineTemplateJoshua Peek2008-07-031-1/+1
|
* Moved TemplateHandlers to BaseJoshua Peek2008-07-031-0/+1
|
* Move template_format logic out to the request so it's alongside the ↵Michael Koziarski2008-07-031-11/+1
| | | | | | 'regular' request format. Use xhr? instead of the expensive trip through Request#accepts.
* Remove unneeded ObjectWrapper class.Michael Koziarski2008-07-031-4/+1
| | | | Was previously needed to work around the semantics of a deprecated (now removed) API to render :partial
* Deprecate :use_full_path render option. The supplying the option no longer ↵Joshua Peek2008-07-021-7/+5
| | | | has an effect.
* Add :as option to render a collection of partials with a custom local ↵Pratik Naik2008-07-021-1/+1
| | | | variable name. [#509 state:resolved] [Simon Jefford, Pratik Naik]
* Hide InlineTemplate class from ActionController and use ActionView's render APIJoshua Peek2008-06-251-6/+5
|
* Made ActionView::Base#render_file privateJoshua Peek2008-06-251-20/+20
|
* Move erb_trim_mode setting to the ERB template handler. Keep a ↵Jeremy Kemper2008-06-191-4/+3
| | | | Base.erb_trim_mode= delegator around.
* Replaced TemplateFinder abstraction with ViewLoadPathsJoshua Peek2008-06-171-32/+73
|
* Delegate ActionView::Base#controller_name to controllerPratik Naik2008-06-101-1/+1
|
* Merge branch 'master' into erboutJeremy Kemper2008-06-051-1/+2
|\
| * Ensure render :file works inside templatesPratik Naik2008-06-051-1/+2
| |
* | Don't pass block binding to concatJeremy Kemper2008-06-021-1/+1
| |
* | Work with @output_buffer instead of _erboutJeremy Kemper2008-06-021-4/+7
| |
* | Try replacing _erbout with @output_bufferJeremy Kemper2008-06-021-4/+1
|/
* Deprecate ActionView::Base.cache_template_extensionsPratik Naik2008-05-171-5/+5
| | | | | | | This commit deprecates unused ActionView::Base.cache_template_extensions option and adds a deprecation warning for those having it in env specific config files. Thanks to José Valim for pointing this out.
* Merge docrails:Pratik Naik2008-05-091-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit e6afd8b2736364322b673bbdcca3e9b38b6d3da0 Author: Xavier Noria <fxn@hashref.com> Date: Thu May 8 23:49:36 2008 +0200 Overall documentation improvement and markup corrections. Zillion changes. commit 2fead68b3192332eee27945ed95a94a64ca73f70 Author: Austin Putman <austin@emmanuel.local> Date: Wed May 7 19:35:46 2008 -0700 Documented class methods on ActionController::Routing. These are dangerous, and mostly used for testing. commit f5b84182dbc39bea79c8ee319c688d00fa99f9d1 Author: Teflon Ted <github@rudiment.net> Date: Wed May 7 16:08:49 2008 -0400 Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications. commit 370f4f51722cec49ace17093d29e9ce9e8f15cfb Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 14:00:59 2008 +0200 Applied list conventions in AR::Base commit 5bd18429f09d44e75191bec42a6db04bd33f3030 Author: Sunny Ripert <negatif@gmail.com> Date: Wed May 7 13:53:35 2008 +0200 Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base commit d912bd5672316454457ae83f6e9dda5197beeb6f Author: Yaroslav Markin <yaroslav@markin.net> Date: Wed May 7 13:50:28 2008 +0400 Add a filter_parameter_logging usage hint to generated ApplicationController. This may help to remind the developer to filter sensitive information from application logs. Closes #11578 commit b243de0db3c2605121e055079854af5090d06374 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:39:47 2008 -0700 doc: disambiguating an example ActiveRecord class commit f81d771f0657ae8375b84a77a059812cce5d6fd9 Author: Jack Danger Canty <git@6brand.com> Date: Tue May 6 23:35:05 2008 -0700 doc: ActiveRecord::Reflection::AssociationReflection#through_reflection Added documentation demonstrating the use of #through_reflection for finding intervening reflection objects for HasManyThrough and HasOneThrough. commit ae6b46f00b5b8b2939c6b37ce3329c83de7e71db Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:47:41 2008 +0800 Document AttributeAssignmentError and MultiparameterAssignmentErrors. commit 8f463550b597db2156b67733f31aed13487fbc3a Author: John Barnette <jbarnette@gmail.com> Date: Tue May 6 22:46:44 2008 -0700 Killing/fixing a bunch of outdated language in the AR README. commit aca44bcd92ef783abdf484b58abdde6786db0f89 Author: Cheah Chu Yeow <chuyeow@gmail.com> Date: Wed May 7 13:34:52 2008 +0800 Make a note about ActiveResource::Timeouterror being raised when ARes calls timeout. commit 284a930a93fbee16e25d06392779dbf2f03e9e12 Author: Jonathan Dance <jd@wuputah.com> Date: Tue May 6 14:58:26 2008 -0400 improvements to the page caching docs commit 9482da621390c874da7c921c8bd6230caae7035a Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 18:13:40 2008 +0200 validates_numericality_of() "integer" option really is "only_integer" commit e9afd6790a8f530528f6597a7f59bb283be754f6 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:11:59 2008 +0200 Harmonized hash notation in AR::Base commit 67ebf14a91ffd970b582be4ff2991d691a9cf3e1 Author: Sunny Ripert <negatif@gmail.com> Date: Mon May 5 12:06:19 2008 +0200 Turned options into rdoc-lists in AR::Base commit 0ec7c0a41d889d4e5382b9dff72f1aaba89bf297 Author: Marshall Huss <mwhuss@Macbook.local> Date: Sun May 4 23:21:33 2008 -0400 Added information of how to set element_name in the case the user has a name confliction with an existing model Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Delegate action_name to controller inside views.Pratik Naik2008-05-061-1/+1
|
* Improve documentation coverage and markupXavier Noria2008-05-021-2/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve PartialTemplate testsPratik Naik2008-05-021-3/+1
|
* Capture view errors in ActionView::Template.Nathan Weizenbaum2008-05-021-11/+2
| | | | | | | This means that errors raised by partials are caught by ActionView::PartialTemplate, which in turn means they have the proper filename and line number information. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Delegate ivars to controller instead of copyingPratik Naik2008-04-211-5/+4
| | | | | Reduce number of instance variables being copied from controller to view. Instead, delegate them to controller instance.
* Introduce ActionView::TestCase for testing view helpers.Joshua Peek2008-04-191-4/+6
|
* Move missing template logic to ActionViewPratik Naik2008-04-191-0/+3
|
* Introduce ActionView::InlineTemplate classPratik Naik2008-04-191-1/+1
|
* Moved template handlers related code from ActionView::Base to ↵Pratik Naik2008-03-051-38/+0
| | | | | | ActionView::Template git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8981 5ecf4fe2-1ee6-0310-87b1-e25e094e27de