aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/fixtures/layouts/_yield_only.erb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2010-11-11 01:30:40 -0200
committerJosé Valim <jose.valim@gmail.com>2010-11-11 16:22:39 +0100
commit50c7aab996baafdfee4b1e4b2ca4673ee76bb19a (patch)
tree3566defa761362a366c6aa2fee2f786d9c2f775e /actionpack/test/fixtures/layouts/_yield_only.erb
parent920660b19c5419c6df1c234a84e7fec71b169544 (diff)
downloadrails-50c7aab996baafdfee4b1e4b2ca4673ee76bb19a.tar.gz
rails-50c7aab996baafdfee4b1e4b2ca4673ee76bb19a.tar.bz2
rails-50c7aab996baafdfee4b1e4b2ca4673ee76bb19a.zip
Fix issue with rendering partials and then yielding inside a render layout call
The given block was never being executed when another render :partial call existed before the yield call, due to the block being overriden. This commit also adds some more tests to render with :layout option.
Diffstat (limited to 'actionpack/test/fixtures/layouts/_yield_only.erb')
-rw-r--r--actionpack/test/fixtures/layouts/_yield_only.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/fixtures/layouts/_yield_only.erb b/actionpack/test/fixtures/layouts/_yield_only.erb
new file mode 100644
index 0000000000..37f0bddbd7
--- /dev/null
+++ b/actionpack/test/fixtures/layouts/_yield_only.erb
@@ -0,0 +1 @@
+<%= yield %>