# Helpers in Database Content?

**URL:** <https://www.ruby-forum.com/t/helpers-in-database-content/113108>\
**Category:** Rails\
**Created:** [August 27, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/helpers-in-database-content/113108 "2007-08-27T18:56:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pete\_Bekisz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/8edcca/32.png) [@Pete\_Bekisz](https://www.ruby-forum.com/u/Pete_Bekisz)\
**Post date:** [August 27, 2007, 6:56pm UTC](https://www.ruby-forum.com/t/helpers-in-database-content/113108/1 "2007-08-27T18:56:57Z")

</div>

Hi folks,

I’m trying to figure out if it’s possible to have helpers in database  
content that would be parsed in the view.

For instance, suppose I have a helper called course\_info, and if I were  
to  
use \<%= course\_info(COM101) %\> it would return COM101: Introduction to  
Communications.

I’m trying to figure out how I could have folks input something like  
[COM101] in a text field that’s stored in a database, and then have  
rails  
parse [COM101] to output the same information.

Does anyone have any idea how I could do this?

Thanks!
