Sha256: 583ed1a2bdb338ed4ba13c67704aa9de0aa387b96401b1153c469183c65542d6

Contents?: true

Size: 301 Bytes

Versions: 30

Compression:

Stored size: 301 Bytes

Contents

- data_source ||= field.reflection.klass.all
= reflection_node f, field do
  - fk = field.reflection.primary_key_name
  %ul
    - data_source.each do |obj|
      %li
        = f.radio_button fk, obj.id, :id => "belongs_to_#{fk}_#{obj.id}"
        = label_tag "belongs_to_#{fk}_#{obj.id}", obj.to_bhf_s

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
bhf-0.4.2.2 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.4.2.1 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.4.2 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.4.1 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.4.0 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.11 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.10 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.9 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.8 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.7 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.6.4 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.6.3 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.6.2 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.6.1 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.5 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.4 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.3 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.2 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.1 app/views/bhf/entries/form/belongs_to/_radio.haml
bhf-0.3.0 app/views/bhf/entries/form/belongs_to/_radio.haml