https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292014-09-25T03:47:51ZRedmineRedmine - Defect #11527: content_for :header_tag not working within partialshttps://www.redmine.org/issues/11527?journal_id=588322014-09-25T03:47:51ZMischa The Evil
<ul><li><strong>Category</strong> set to <i>Plugin API</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li></ul><p>Hi Déja, I just came around this issue and decided to test the given behavior by generating a simple sample plugin (<a class="external" href="https://github.com/MischaTheEvil/redmine_rm11527">https://github.com/MischaTheEvil/redmine_rm11527</a>). Testing this plugin on a test deployment of Redmine <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/13366/entry/trunk">source:/trunk@13366</a><sup><a href="#fn1">1</a></sup>, I cannot reproduce the behavior described by you<sup><a href="#fn2">2</a></sup>. In my case the plugin's assets are included in page headers also when the <code>content_for :header_tags do</code> blocks are used in view partials.<br />Can you please confirm that the defect you reported is still being experienced and, if yes, test the plugin and provide the results and some more debug info (see <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/Submissions">submissions</a> wiki page)?</p>
<p>Looking closely at your example it may even be a simple typo [<code>content_for :header_tag do</code> vs <code>content_for :header_tags do</code>] too...</p>
<p id="fn1" class="footnote"><sup>1</sup> <a href="#" onclick="$('#collapse-48e0729c-show, #collapse-48e0729c-hide').toggle(); $('#collapse-48e0729c').fadeToggle(150);; return false;" id="collapse-48e0729c-show" class="icon icon-collapsed collapsible">Details about my test environment...</a><a href="#" onclick="$('#collapse-48e0729c-show, #collapse-48e0729c-hide').toggle(); $('#collapse-48e0729c').fadeToggle(150);; return false;" id="collapse-48e0729c-hide" class="icon icon-expended collapsible" style="display:none;">Details about my test environment...</a><div id="collapse-48e0729c" class="collapsed-text" style="display:none;"><pre>
Environment:
OS Ubuntu Server 12.04.5 LTS
Web server Apache 2.2.22
Application server Phusion Passenger 4.0.52, running as Apache module
Database backend MySQL 5.5.38
Redmine version 2.5.2.devel.13366
Ruby version 2.1.2-p95 (2014-05-08) [i686-linux]
Rails version 3.2.19
Environment development
Database adapter Mysql2
SCM:
Subversion 1.6.17
Git 1.7.9.5
Filesystem
Redmine plugins:
redmine_rm11527 0.0.1
</pre></div></p>
<p id="fn2" class="footnote"><sup>2</sup> I only tested this on the given trunk version. I haven't tested this with 1.x.x at all. More general: I cannot think that the API has changed that much between 1.x.x and 2.x.x...</p> Redmine - Defect #11527: content_for :header_tag not working within partialshttps://www.redmine.org/issues/11527?journal_id=595782014-11-03T21:43:02ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/11105">Defect #11105</a>: <% content_for :header_tags do %> doesn't work inside hook</i> added</li></ul>