module Binda module FieldSettingsHelper def get_form_field_setting_url return structure_field_group_field_settings_path if action_name == 'new' return structure_field_group_field_setting_path if action_name == 'edit' end def get_field_types FieldSetting.get_field_classes.map{ |fc| fc.to_s.underscore } end end end