# Mental Tags - FormTagHelper?

**URL:** <https://www.ruby-forum.com/t/mental-tags-formtaghelper/91639>\
**Category:** Radiant CMS\
**Created:** [April 11, 2007, 12:58am UTC](https://www.ruby-forum.com/t/mental-tags-formtaghelper/91639 "2007-04-11T00:58:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpheath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Post date:** [April 11, 2007, 12:58am UTC](https://www.ruby-forum.com/t/mental-tags-formtaghelper/91639/1 "2007-04-11T00:58:30Z")

</div>

Is it possible to use FormTagHelper from within Radius tags?

I’m trying to do something like this:

module CommentTags  
include Radiant::Taggable  
include ActionView::Helpers::FormTagHelper

tag “comment:text\_field” do |tag|  
attrs = tag.attr.symbolize\_keys  
text\_field\_tag(attrs[:name], attrs[:value]).inspect  
end

end

Thanks…

---

<div class="post-metadata">

**Author:** ![rpheath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Post date:** [April 12, 2007, 12:12am UTC](https://www.ruby-forum.com/t/mental-tags-formtaghelper/91639/2 "2007-04-12T00:12:54Z")

</div>

Ryan H. wrote:

> ```
> attrs = tag.attr.symbolize_keys
> text_field_tag(attrs[:name], attrs[:value]).inspect
> 
> ```
> 
> end
> 
> end

It’s possible to make this work, but you will need to study the  
FormTagHelper module to see which methods and instance variables it  
depends on. I did a similar thing on a search plugin for [Ruby-Lang.org](http://Ruby-Lang.org)  
to use the builtin text helpers.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)
