limit the new aspect form name to be less than 20 char in the form

This commit is contained in:
maxwell 2010-12-08 13:58:16 -08:00
parent 5f1f28923f
commit f659ba58ef

View file

@ -10,6 +10,6 @@
= aspect.error_messages
%p
= aspect.label :name , t('.name')
= aspect.text_field :name
= aspect.text_field :name, :maxlength => 20
= aspect.submit t('.create'), :class => 'button'