Textarea With Status plugin

Plugin details

Just a little helper for all those text areas out there that need to display their left chars (and also limit the textarea to not exceed them).

Websitehttp://code.google.com/p/text-area-with-status/ Repositoryhttp://text-area-with-status.googlecode.com/svn/tags/text_area_with_status Author Alexandru Ungur Tags TextArea, form LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://text-area-with-status.googlecode.com/svn/tags/text_area_with_status

The plugin adds two new options to text_area and text_area_tag helpers:

  :max_chars => 50 #Maximum_number_of_characters


and

:max_chars_msg => 'Status message'



e.g.

<%= f.text_area :description, :max_chars => 100 %>
<%= f.text_area :description, :max_chars => 100, :max_chars_msg => 'You only have %d chars left.' %>

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (8 older versions) | Last edited by: scott, 12 months ago