On 10/5/06, Daniel N <has.sox-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> 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?
>
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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---