Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ActionView::Base.default_form_builder

#1427

The accessor is defined (and initialized) in quite non-obvious place - at the end of the actionpack/lib/action_view/helpers/form_helper.rb file.

I'd suggest moving it to actionpack/lib/action_view/base.rb and documenting since it's being used by plugins like fudge_form.

Reported by qoobaa · November 21st, 2008 @ 11:39 AM

State: wontfix
Milestone: 2.x
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. Jacek Becela
    Jacek Becela

    +1 for moving cattr_accessor :default_form_builder - it's kind of public api, so it should be moved and documented. Initializing it should stay IMO in form_helper.rb.

    November 21st, 2008 @ 12:24 PM

  2. Pratik
    Pratik
    • Assigned user set to Pratik
    • State changed from new to incomplete

    Sounds good. Patch please! Also, the old API needs to be deprecated.

    Thanks.

    March 10th, 2009 @ 11:58 AM

  3. beawesomeinstead
  4. beawesomeinstead
    beawesomeinstead
    • Assigned user changed from Pratik to José Valim

    Better version.

    January 22nd, 2010 @ 05:01 AM

  5. Prem Sichanugrist (sikachu)
    Prem Sichanugrist (sikachu)
    • Tag changed from actionpack, edge, form, form_helper to actionpack, edge, form, form_helper, review

    January 22nd, 2010 @ 08:32 AM

  6. José Valim
    José Valim

    We need some deprecation warning on this.

    January 25th, 2010 @ 12:08 AM

  7. José Valim
    José Valim

    Is someone working on a new patch with deprecation warnings on this? :)

    February 2nd, 2010 @ 09:16 AM

  8. Prem Sichanugrist (sikachu)
    Prem Sichanugrist (sikachu)

    I'm bugging beawesomeinstead in the chat room now. he's going to upload it here soon

    February 2nd, 2010 @ 09:19 AM

  9. beawesomeinstead
    beawesomeinstead

    Oops, sorry for the delay, we've had a new release last week. Patch attached.

    February 2nd, 2010 @ 09:39 AM

  10. José Valim
    José Valim
    • State changed from incomplete to wontfix

    I had some issues applying the patch and running an application, it made the FormBuilder constant be loaded too early. The bottom of form_helper.rb is indeed the proper place for it. Sorry mate for making you fix the patch twice.

    February 2nd, 2010 @ 10:07 AM

  11. beawesomeinstead
    beawesomeinstead

    np :-) wontfix is better than open :-)

    February 2nd, 2010 @ 10:54 AM

  12. Ryan Bigg
    Ryan Bigg
    • Tag cleared.
    • Importance changed from to Low

    Automatic cleanup of spam.

    November 8th, 2010 @ 01:49 AM

  13. af001
    af001

    私の中で、総合評価のとっても低いアバアバクロホリスタークロ銀座店。アバクロは大好きなんですけどね。一昨日の東京駅付近での打ち合わせの後、散歩がてら久々に行ってきました。そしたらビックリ!相変わらアバクロず、踊っているだけの店員さんとかもいましたが、

    May 5th, 2011 @ 03:00 AM