aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
Commit message (Collapse)AuthorAgeFilesLines
* Fix rendering of HTML partials inside JS templates [#4197 status:resolved]José Valim2010-03-162-3/+16
|
* translation method of TranslationHelper module returns always SafeBuffer ↵Santiago Pastorino2010-03-161-1/+1
| | | | | | [#4194 status:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Some more tweaks on <% %>.Carlhuda2010-03-162-2/+3
| | | | * The cache helper is now semantically "mark this region for caching" * As a result, <% x = cache do %> no longer works
* Change array entries to safe doesn't worth then the array is joined as a ↵Santiago Pastorino2010-03-161-1/+1
| | | | | | string losing the safe property of his entries [#4134 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix link_to with blockJeremy Kemper2010-03-151-1/+1
|
* link_to_remote -> link_to :remote => trueJeremy Kemper2010-03-151-1/+1
|
* Move more normalization up to the lookup context, so it does not have to ↵José Valim2010-03-162-29/+31
| | | | repeat in every resolver.
* Add deprecation notices for <% %>.Carlhuda2010-03-157-69/+42
| | | | | | | | | | | | | | | | * The approach is to compile <% %> into a method call that checks whether the value returned from a block is a String. If it is, it concats to the buffer and prints a deprecation warning. * <%= %> uses exactly the same logic to compile the template, which first checks to see whether it's compiling a block. * This should have no impact on other uses of block in templates. For instance, in <% [1,2,3].each do |i| %><%= i %><% end %>, the call to each returns an Array, not a String, so the result is not concatenated * In two cases (#capture and #cache), a String can be returned that should *never* be concatenated. We have temporarily created a String subclass called NonConcattingString which behaves (and is serialized) identically to String, but is not concatenated by the code that handles deprecated <% %> block helpers. Once we remove support for <% %> block helpers, we can remove NonConcattingString.
* with_output_buffer cannot assume there's an output_bufferXavier Noria2010-03-151-1/+1
| | | | | | [#4182 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Making escaped things more readableSantiago Pastorino2010-03-143-3/+3
|
* Optimize DetailsKey generation.José Valim2010-03-141-4/+5
|
* Remove formats setters from render template, speeding up partial and ↵José Valim2010-03-131-2/+1
| | | | collection renderings.
* Made asset_tag_helper use config.perform_caching instead of ↵Denis Odorcic2010-03-121-14/+14
| | | | | | ActionController::Base.perform_caching Signed-off-by: José Valim <jose.valim@gmail.com>
* Finish cleaning up rendering stack from views and move assigns evaluation to ↵José Valim2010-03-126-53/+16
| | | | controller (so plugins and/or controllers can overwrite just one method).
* Allow anything that responds to render to be given as :template and use ↵José Valim2010-03-125-9/+10
| | | | find_template instead of find in views.
* %= works for content_tag and does not require parenthesis on method callJosé Valim2010-03-121-47/+6
|
* Make all AP tests pass for Ruby 1.9.1.José Valim2010-03-121-8/+11
|
* Delegate #encoding to SafeBuffer tooJeremy Kemper2010-03-111-0/+4
|
* simplify alt tag generation for imagesEaden McKee2010-03-111-2/+2
| | | | | | [#2837 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add tests for lookup context.José Valim2010-03-111-33/+33
|
* Merge branch 'master' of github.com:rails/railswycats2010-03-105-69/+64
|\
| * Optimize and clean up how details key get expired.José Valim2010-03-103-29/+35
| |
| * Clean up the API required from ActionView::Template.José Valim2010-03-093-40/+29
| |
* | Make form helpers work with <%= wycats2010-03-095-14/+56
| |
* | Deprecate block_called_from_erb? pending a solution for getting it into appsCarlhuda2010-03-096-43/+87
|/
* Clean LookupContext API.José Valim2010-03-087-39/+32
|
* Merge master.José Valim2010-03-085-7/+16
|\
| * Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-075-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook
* | Bring AM up to date with new rendering stack.José Valim2010-03-083-0/+15
| |
* | Move details to lookup_context and make resolvers use the cache key.José Valim2010-03-083-90/+117
| |
* | Speed up performance in resolvers by adding fallbacks just when required.José Valim2010-03-086-55/+45
| |
* | Rename Template::Lookup to LookupContext.José Valim2010-03-087-81/+93
| |
* | More refactoring on the views side of rendering.José Valim2010-03-084-96/+98
| |
* | Finally moved the find template logic to the views.José Valim2010-03-082-20/+27
| |
* | More cleanup on the layouts side.José Valim2010-03-082-17/+6
| |
* | Move layout lookup to views.José Valim2010-03-084-7/+25
| |
* | Added template lookup responsible to hold all information used in template ↵José Valim2010-03-077-65/+82
| | | | | | | | lookup.
* | First take on ViewPaths clean up.José Valim2010-03-072-67/+30
|/
* Adds disable option to date_helpers generated hidden fields when ↵Santiago Pastorino2010-03-051-1/+2
| | | | | | | | html_options specifies it. ht by Marc Schütz [#3807 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Solved a problem that prevented render :file => work in layoutsJose Fernandez2010-03-051-1/+1
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Remove some of the blank rescues from number helper. This makes the code ↵Xavier Shay2010-03-051-44/+42
| | | | | | easier to understand, as you're not left wondering what the rescue is actually doing. This does not change documented/tested behaviour. Signed-off-by: wycats <wycats@gmail.com>
* Actually, revert previous commit. Having a lot of information is better than ↵José Valim2010-03-051-9/+3
| | | | having no information at all.
* Define to_s method in ActionView::Resolver, so I'm not required to write it ↵José Valim2010-03-051-1/+5
| | | | in inherited classes.
* Fix a bunch of failing AP / AM specs created from the previous ↵Carl Lerche2010-03-041-1/+1
| | | | AbstractController configuration refactor.
* Tweak how ActionPack handles InheritableOptionsCarl Lerche2010-03-031-1/+1
|
* Start refactoring the method of configuring ActionViewCarlhuda2010-03-033-17/+6
|
* ActionDispatch::Request deprecates #request_uriCarl Lerche2010-03-031-1/+1
| | | | * Refactored ActionPatch to use fullpath instead
* Tweak the semantic of various URL related methods of ActionDispatch::RequestCarlhuda2010-03-032-2/+5
|
* Work on deprecating ActionController::Base.relative_url_rootCarlhuda2010-03-031-2/+2
|
* Fix failing Action Pack testsCarlhuda2010-03-021-1/+1
|