Sha256: 09205e99d4deac1ebb5ed5145f258a1ecbd90cd4264c407835f288e16acf80d9

Contents?: true

Size: 287 Bytes

Versions: 4

Compression:

Stored size: 287 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bhf-0.1.3 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.1.2 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.1.1 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.1.0 app/views/bhf/entries/form/belongs_to/_select.haml