Displaying 1 result from an estimated 1 matches for "default_form_build".
Did you mean:
default_form_builder
2010 Jun 23
3
Custom default form builder in Rails 3
...ng to set a default custom form builder.
I have defined my form builder class in "lib/mymodule/mybuilder.rb"
as:
module Mymodule
class Mybuilder < ActionView::Helpers::FormBuilder
......
end
end
Then I am trying to use this custom class in application.rb as
config.action_view.default_form_builder = Mymodule::Mybuilder. But I
get "Uninitialized constant error."
Does this mean that my module stored in "lib" directory is not loaded
automatically?
Thanks in advance,
p.s. I am a newbie to Ruby and Rails as well. I can''t really
understand the module and class loa...