aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Reinstate "Super lazy load view paths in development mode (no indexing or ↵Joshua Peek2008-11-281-3/+1
| | | | caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading."
* Revert "Super lazy load view paths in development mode (no indexing or ↵David Heinemeier Hansson2008-11-271-1/+3
| | | | | | caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading. This reverts commit 4d910b033379727e5e7355590c50c72fc75e56db.
* Super lazy load view paths in development mode (no indexing or caching at ↵Joshua Peek2008-11-261-3/+1
| | | | all). Switch layout finders to use view path api to take advantage of cache.
* use autoload instead of explicit requires for ActionViewJoshua Peek2008-11-231-1/+1
|
* Changed the default of ActionView#render to assume partials instead of files ↵David Heinemeier Hansson2008-11-191-7/+16
| | | | when not given an options hash [DHH]
* Fix rendering html partial via inline render when with :js format [#1399 ↵Luke Melia2008-11-181-1/+2
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Track rendered templates in stack so the current template can always be ↵Joshua Peek2008-10-281-3/+8
| | | | accessed. Added ActionView::Base#template to access the template object.
* Remove stuff that was deprecated in 2-1-stablePratik Naik2008-10-211-16/+0
|
* Move controller ivar copying to a separate methodPratik Naik2008-10-051-8/+10
|
* Protect body ivar from being clobbered by the mailer template assignsJoshua Peek2008-09-281-2/+2
|
* Check for uninitialized instance variablesJeremy Kemper2008-09-081-4/+6
|
* Moved layout exemption logic into the viewJoshua Peek2008-08-311-52/+55
|
* Prefix ActionView::Base private methods with an underscoreJoshua Peek2008-08-311-5/+6
|
* Fix AM tests and add tests for rendering loggingPratik Naik2008-08-311-2/+0
|
* Add lost log messages about template renderingPratik Naik2008-08-311-0/+3
|
* Move layout rendering logic to ActionView::BasePratik Naik2008-08-311-17/+28
|
* Move copying ivar logic from ActionController::Base to ActionView::BasePratik Naik2008-08-311-7/+9
|
* Store application and other context specific helper modules in ↵Joshua Peek2008-08-261-0/+14
| | | | ActionView::Base#helpers
* Cache JavaScriptGenerator's helper module set on the templateJoshua Peek2008-08-261-5/+0
|
* Performance: Cache modules that extend the view context for JavaScriptGeneratorJoshua Peek2008-08-251-2/+6
|
* Include all helpers into ActionView::HelperJoshua Peek2008-08-251-13/+0
|
* Removed template_public? because it will always be true since the default ↵Joshua Peek2008-08-211-5/+0
| | | | template is never a partial
* Cleanup around partial renderingRyan Bates2008-08-211-35/+8
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Return nil instead of a space when passing an empty collection or nil to ↵Ryan Bates2008-08-191-1/+1
| | | | | | 'render :partial' [#791 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* 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.