Sha256: 36384d7c6640376702425b1bac6ece8e0067f333f561767dfef609406f40ae2b

Contents?: true

Size: 334 Bytes

Versions: 24

Compression:

Stored size: 334 Bytes

Contents

- data_source ||= field.reflection.klass.all
- fk = field.reflection.primary_key_name
.node
  .label= f.label fk
  .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

24 entries across 24 versions & 1 rubygems

Version Path
bhf-0.3.10 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.9 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.8 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.7 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.6.4 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.6.3 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.6.2 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.6.1 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.5 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.4 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.3 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.2 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.1 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.3.0 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.2.9 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.2.8 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.2.7 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.2.6 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.2.5 app/views/bhf/entries/form/belongs_to/_select.haml
bhf-0.2.4 app/views/bhf/entries/form/belongs_to/_select.haml