# How to fetch a block provided by content\_for in a helper?

**URL:** <https://www.ruby-forum.com/t/how-to-fetch-a-block-provided-by-content-for-in-a-helper/138008>\
**Category:** Rails\
**Created:** [May 19, 2008, 1:38pm UTC](https://www.ruby-forum.com/t/how-to-fetch-a-block-provided-by-content-for-in-a-helper/138008 "2008-05-19T13:38:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g0nzo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/3bc359/32.png) [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Post date:** [May 19, 2008, 1:38pm UTC](https://www.ruby-forum.com/t/how-to-fetch-a-block-provided-by-content-for-in-a-helper/138008/1 "2008-05-19T13:38:07Z")

</div>

Hi,

I got a title\_tag helper that renders default page title or title  
provided by content\_for block, if such block is present. Currently I  
call this method like this: “title\_tag(yield(:title))”. Is it possible  
to fetch :title block inside the helper without explicitly passing it  
as a parameter to this helper?
