Я использую simple_form для своей формы и хотел бы включить некоторый основной символ JS в текстовое поле.Как реализовать базовый счетчик символов в simple_form?
Моя форма частичными выглядит следующим образом:
<%= simple_form_for(@post, html: {class: 'form-horizontal' }) do |f| %>
<%= f.error_notification %>
<%= f.input_field :parent_id, as: :hidden %>
<div class="field">
<% if can? :manage, @post %>
<%= f.input_field :status, label: "Status", collection: Post.statuses.keys, selected: :unconfirmed %>
<% end %>
</div>
<%= f.input :title, placeholder: "Enter Title" %>
<%= f.input :photo %>
<%= f.input :file %>
<%= f.input :body %>
<div class="report-submit">
<%= f.button :submit %>
</div>
<% end %>
Как идти об этом?
где есть большое текстовое поле? – RSB
@RSB 'f.input: body'. – marcamillion