method

color_field

Importance_1
v6.1.7.7 - Show latest stable - 0 notes - Class: ActionView::Helpers::FormBuilder
color_field public

Wraps ActionView::Helpers::FormHelper#color_field for form builders:

<%= form_with model: @user do |f| %>
  <%= f.color_field :favorite_color %>
<% end %>

Please refer to the documentation of the base helper for details.

Show source
Register or log in to add new notes.