# Customized form\_for in ApplicationHelper

**URL:** <https://www.ruby-forum.com/t/customized-form-for-in-applicationhelper/197041>\
**Category:** Rails\
**Created:** [May 19, 2010, 11:54am UTC](https://www.ruby-forum.com/t/customized-form-for-in-applicationhelper/197041 "2010-05-19T11:54:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![poseid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/dc4da7/32.png) [@poseid](https://www.ruby-forum.com/u/poseid)\
**Post date:** [May 19, 2010, 11:54am UTC](https://www.ruby-forum.com/t/customized-form-for-in-applicationhelper/197041/1 "2010-05-19T11:54:47Z")

</div>

hello,

I want to make a table within a form by making a new form\_tag. The  
following code in ApplicationHelper fails:

def tabular\_form\_for(name, object = nil, options = nil, &proc)  
concat("

", proc.binding)  
form\_for(name,  
object,  
(options||{}).merge(:builder =\> TabularFormBuilder),  
&proc)  
concat("

", proc.binding)  
end

But using this tag in my view, I get errors with my :errors, :name  
fields of the form.  
Any ideas how to make this custom tag work?

---

<div class="post-metadata">

**Author:** ![poseid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/dc4da7/32.png) [@poseid](https://www.ruby-forum.com/u/poseid)\
**Post date:** [May 19, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/customized-form-for-in-applicationhelper/197041/2 "2010-05-19T15:17:56Z")

</div>

Use a form builder. See the api doc.
