Sha256: de73ab6dd475444d860bbf931cfb1f3db28923a27e12ca3a0ee8f2ddedb3a26a
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 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 %> <%# still need to check [:collection_check_boxes, :collection_radio_buttons] %> <%# bind method works, but binding not correctly hooking up %> <%# <%= f.bind_select :name %1> %> <%# <%= f.bind_date_select :name %1> %> <%# <%= f.bind_time_select :name %1> %> <%# <%= f.bind_datetime_select :name %1> %> <%# <%= f.bind_time_zone_select :name, nil, include_blank: true %1> %> <%# doesn't work at all %> <%# <%= f.bind_collection_select :name, :id, [], :id, :name %1> %> <%# <%= f.bind_grouped_collection_select :name %1> %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems