Sha256: 18ef30a9e8b6926f5c483e9ba22ae79d654e11c9119360a7e305bd1cb1acbf93

Contents?: true

Size: 362 Bytes

Versions: 6

Compression:

Stored size: 362 Bytes

Contents

- data_source ||= field.reflection.klass.all
- fk = field.reflection.primary_key_name
.node
  .label= f.label fk, reflection_title(f, field)
  .input
    = f.select fk, options_from_collection_for_select(data_source, :id, :to_bhf_s, f.object.send(fk)), :include_blank => true
    = render :partial => 'bhf/helper/field_errors', :locals => {:f => f, :field => fk}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bhf-0.4.2.2 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.4.2.1 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.4.2 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.4.1 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.4.0 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.11 app/views/bhf/entries/form/belongs_to/_select.haml