Sha256: cd9f6c24211bbf00796fb34cdae6634642435fe471298390ab5c0ec84b855f06

Contents?: true

Size: 342 Bytes

Versions: 85

Compression:

Stored size: 342 Bytes

Contents

- data_source ||= field.reflection.klass.all
- fk = field.reflection.foreign_key
.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

85 entries across 85 versions & 1 rubygems

Version Path
bhf-0.8.0 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.16 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.15 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.14 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.13 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.12 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.11 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.9 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.8 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.7 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.5 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.4 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.3 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.2 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.1 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.0.rc3 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.0.rc2 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.7.0.rc1 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.6.32 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.6.31 app/views/bhf/entries/form/belongs_to/_select.haml