Sha256: cc55059038a1d03468afe0b38e1e5f7a24ec1fe21e3c630cf392408095aac0d4

Contents?: true

Size: 1.07 KB

Versions: 15

Compression:

Stored size: 1.07 KB

Contents

<%= form_for @model, url: '' do |f| %>
  <%# working 100%! %>
    <% [:text_field, :password_field, :hidden_field, :file_field, :text_area,
      :check_box, :color_field, :search_field, :telephone_field,
      :phone_field, :date_field, :time_field, :datetime_field, :datetime_local_field,
      :month_field, :week_field, :url_field, :email_field, :number_field, :range_field].each do |helper| %>

      <%= f.send("bind_#{helper}", :name) %>
    <% end %>

    <%= f.bind_radio_button :name, :cool %>
    <%= f.bind_select :name, [1,2,3] %>
    <%= f.bind_time_zone_select :name, nil, include_blank: true %>

  <%# bind method works, but binding not correctly hooking up %>
    <%# <%= f.bind_date_select :name %1> %>
    <%# <%= f.bind_time_select :name %1> %>
    <%# <%= f.bind_datetime_select :name %1> %>

  <%# doesn't work at all %>
    <%# <%= f.bind_collection_select :name, :id, [], :id, :name %1> %>
    <%# <%= f.bind_grouped_collection_select :name %1> %>
    <%# <%= f.bind_collection_check_boxes :name %1> %>
    <%# <%= f.bind_collection_radio_buttons :name %1> %>

<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
angular_sprinkles-0.3.3 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.3.2 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.3.1 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.3.0 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.14 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.13 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.12 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.11 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.10 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.9 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.8 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.7 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.6 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.5 spec/dummy/app/views/test/form_helpers.html.erb
angular_sprinkles-0.2.4 spec/dummy/app/views/test/form_helpers.html.erb