Custom Form Builder gives error

Hi everyone,

I’ve been trying to get the form builder recipe to work in the Recipes
book
to work.

Just to start I’m trying to cut and past the code to get it happening.

When I put the class TabularFormBuilder into the application_helper.rb I
get
the following error.

uninitialized constant
ActionView::Base::CompiledTemplates::TabularFormBuilder

But when I move the class into my environment.rb it works no problem.

Any idea why this would be happening?

On 10/5/06, Daniel N [email protected] wrote:

uninitialized constant ActionView::Base::CompiledTemplates::TabularFormBuilder

But when I move the class into my environment.rb it works no problem.

Any idea why this would be happening?

Solved. Needed to put the class definition outside the module
ApplicationHelper but in the file.

Sorry for posting before I tried everything. It’s getting late I
guess.