Implementing Countable.js to count words.

Changed the words_count method to work with countable.js

Added the gem for countable.js
This commit is contained in:
gotens1211 2017-02-05 16:00:45 +05:30
parent 8b5d6603af
commit c1b81755c9
5 changed files with 17 additions and 14 deletions

View file

@ -14,7 +14,7 @@
= link_to 'Change your avatar here', 'https://gravatar.com'
= f.input :affiliation, as: :string,
hint: 'This could be a company, a user group, or nothing at all.'
= f.input :biography, input_html: { rows: 5, data: { provide: 'markdown-editable' }, 'onkeyup' => "word_count(this, 'biography-count', 150)" },
= f.input :biography, input_html: { rows: 5, data: { provide: 'markdown-editable' } },
hint: markdown_hint
You have used
%span#bio_length