Displaying 2 results from an estimated 2 matches for "tabularformbuilder".
Did you mean:
tabular_form_builder
2006 Apr 23
3
custom form builder
In the API docs I found this:
"You can also build forms using a customized FormBuilder class. Subclass
FormBuilder and override or define some more helpers, then use your
custom builder "
I couldn''t find any further documentation on this. Where can I read more
about this formbuilder class? For starters, where would I define a
subclass of this class?
TIA,
Jeroen
--
2010 May 19
2
customized form_for in ApplicationHelper
...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("<table>", proc.binding)
form_for(name,
object,
(options||{}).merge(:builder => TabularFormBuilder),
&proc)
concat("</table>", 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?
--
You received this message because you are subscribed to the Google Groups "Rub...