- 13 11月, 2015 1 次提交
-
-
由 yui-knk 提交于
This commit fixes the bug convering `false` to `locals[as]` when `options[:object]` is `false` (close #22260).
-
- 03 11月, 2015 1 次提交
-
-
由 Yuki Nishijima 提交于
-
- 26 9月, 2015 1 次提交
-
-
由 Ronak Jangir 提交于
-
- 29 6月, 2015 1 次提交
-
-
由 Roque Pinel 提交于
Adds the `virtual_path` option to `cache_fragment_name` so it can be provided when needed. That allows `cache_collection_render` to get the appropriate cache key with the digest generated based on the template and prevent collision with other templates that cache the same collection.
-
- 14 5月, 2015 1 次提交
-
-
由 Henrik Nygren 提交于
When one rendered a partial template without specifying an object or a collection (e.g. <%= render partial: 'partial_name' %>), Rails would make an object called :partial_name available in local_assigns. I don't think this was the intended behavior, since no local variable called 'partial_name' gets defined in the view.
-
- 21 2月, 2015 3 次提交
-
-
由 Kasper Timm Hansen 提交于
Collections can take advantage of `multi_read` if they render one template and their partials begin with a cache call. The cache call must correspond to either what the collections elements are rendered as, or match the inferred name of the partial. So with a notifications/_notification.html.erb template like: ```ruby <% cache notification %> <%# ... %> <% end %> ``` A collection would be able to use `multi_read` if rendered like: ```ruby <%= render @notifications %> <%= render partial: 'notifications/notification', collection: @notifications, as: :notification %> ```
-
由 Franky W 提交于
The testing of error messages have been implemented wrongly a few times. This is an attempt to fix it. For example, some of these test should have failed with the new code. The reason they are not failling with the new string is the fact they were not being tested beforehand.
-
由 Kasper Timm Hansen 提交于
Makes caching a collection of template partials faster using `read_multi` on the Rails cache store. Some caching implementations have optimized `read_multi` so we don't have to check in the cache store for every template.
-
- 06 2月, 2015 1 次提交
-
-
由 Akira Matsuda 提交于
because the partial renderer would not create an lvar per each template since c67005f2
-
- 03 2月, 2015 1 次提交
-
-
由 Vipul A M 提交于
-
- 30 12月, 2014 1 次提交
-
-
由 Angelo capilleri 提交于
before this PR IDENTIFIER_ERROR_MESSAGE could lead to misunderstand the convention of partial name. Added OPTION_AS_ERROR_MESSAGE for unvalid charter in as option.
-
- 19 12月, 2014 1 次提交
-
-
由 Nikolay Shebanov 提交于
-
- 29 11月, 2014 1 次提交
-
-
由 Erik Michaels-Ober 提交于
-
- 19 7月, 2014 1 次提交
-
-
由 Eugene Gilburg 提交于
-
- 17 7月, 2014 1 次提交
-
-
由 Joel Junström 提交于
The iteration object is available as the local variable "template_name_iteration" when rendering partials with collections. It gives access to the +size+ of the collection beeing iterated over, the current +index+ and two convinicence methods +first?+ and +last?+ "template_name_counter" variable is kept but is deprecated. [Joel Junström + Lucas Uyezu]
-
- 12 7月, 2014 1 次提交
-
-
由 Matthew Draper 提交于
Just so it's clearer what's going on in the following assertion. /cc #11993 @robin850
-
- 14 6月, 2014 1 次提交
-
-
由 Zuhao Wan 提交于
-
- 12 6月, 2014 1 次提交
-
-
由 Zuhao Wan 提交于
-
- 19 2月, 2014 1 次提交
-
-
由 Prem Sichanugrist 提交于
This test were assuming that the list of render options will always be the same. Fixing that so this doesn't break when we add/remove render option in the future.
-
- 13 2月, 2014 1 次提交
-
-
由 Iain Beeston 提交于
automatically call @foo.to_partial_path Calling `render @foo` allows local variables but not options to be passed to the partial renderer. The correct way to render an object AND pass options to the partial renderer is to pass the object in the `:partial` parameter. However, there were previously no tests for this behaviour (in `render_helper_test.rb` at least).
-
- 02 12月, 2013 1 次提交
-
-
由 Yves Senn 提交于
Missing partial folder/_partial instead of folder/partial. Closes #13002.
-
- 24 11月, 2013 1 次提交
-
-
由 Federico Ravasio 提交于
This makes the test compatible with other Ruby implementations, which may implement error messages differently.
-
- 01 11月, 2013 1 次提交
-
-
由 Arun Agrawal 提交于
Same as 4d4ff531
-
- 15 7月, 2013 1 次提交
-
-
由 kennyj 提交于
Fix default rendered format problem when calling render method without :content_type option. Closes #11393.
-
- 21 6月, 2013 1 次提交
-
-
由 Łukasz Strzałkowski 提交于
Now if somebody by mistake will remove malformed files test will raise error.
-
- 20 6月, 2013 1 次提交
-
-
由 Piotr Sarnacki 提交于
-
- 21 4月, 2013 1 次提交
-
- 04 4月, 2013 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Introduced in 2c22376f
-
- 08 1月, 2013 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Previously rendering a partial without giving :object or :collection would generate a local variable with the partial name by default. This was noticed due to warnings in Ruby 2.0 of not used variables, which turned out to be the generation of not used variables inside partials that do not contain objects related to them.
-
- 02 12月, 2012 1 次提交
-
-
由 Yves Senn 提交于
-
- 27 10月, 2012 1 次提交
-
-
由 Yves Senn 提交于
-
- 17 9月, 2012 2 次提交
-
-
由 Guillermo Iguaran 提交于
-
由 Tima Maslyuchenko 提交于
-
- 11 9月, 2012 1 次提交
-
-
由 Guillermo Iguaran 提交于
This handler simply allows arbitrary Ruby code as a template
-
- 14 8月, 2012 1 次提交
-
-
由 Lucas Uyezu 提交于
-
- 03 8月, 2012 1 次提交
-
-
由 kennyj 提交于
-
- 18 7月, 2012 1 次提交
-
-
由 Dmitry Vorotilin 提交于
-
- 18 5月, 2012 1 次提交
-
-
由 Steve Klabnik 提交于
Fixes #2394
-
- 05 5月, 2012 1 次提交
-
-
由 Vijay Dev 提交于
-
- 30 4月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
Allow access to current object_counter variable from layout when rendering with partial + collection
-