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.

FormBuilder module not work for all fields types

#1869

the problem is the following line:

actionpack/lib/action_view/helpers/form_helper.rb @ 870


self.field_helpers = (FormHelper.instance_methods - ['form_for'])

one possible fix is:


self.field_helpers = (FormHelper.instance_methods - ['form_for']) +
        (DateHelper.instance_methods - ["distance_of_time_in_words", "select_month", "select_second", "select_datetime", "distance_of_time_in_words_to_now", "select_day", "select_time", "time_ago_in_words", "select_hour", "select_date", "select_year", "select_minute"]) +
        (FormOptionsHelper.instance_methods - ["options_for_select", "option_groups_from_collection_for_select", "grouped_options_for_select", "options_from_collection_for_select", "time_zone_options_for_select"])

Reported by Ramon Soares · February 4th, 2009 @ 06:27 AM

State: stale
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. Ryan Bigg
    Ryan Bigg

    Could you elaborate as to what problem this solves?

    April 10th, 2010 @ 11:50 AM

  2. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  3. Jeff Kreeftmeijer
    Jeff Kreeftmeijer
    • State changed from new to stale
    • Importance changed from to

    Marking this one as stale as it's old and it's unclear what problem this tries to solve.

    October 14th, 2010 @ 07:43 PM