Module: Binda::FieldSettingsHelper

Defined in:
app/helpers/binda/field_settings_helper.rb

Instance Method Summary collapse

Instance Method Details

#get_field_typesObject



9
10
11
# File 'app/helpers/binda/field_settings_helper.rb', line 9

def get_field_types
	FieldSetting.get_field_classes.map{ |fc| fc.to_s.underscore }
end

#get_form_field_setting_urlObject



4
5
6
7
# File 'app/helpers/binda/field_settings_helper.rb', line 4

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