Check this link http://devblog.riverocktech.com/archives/2007/9/12/ 
an_unobtrusive_way_in_rails_to/

Short and lazy version

<%= f.text_field :title, :maxlength => 50 %>

The :maxlength means that the textbox stops letting you enter text  
when you reach 50 characters. There is probably some way you can  
generate a counter that updates/countsdown but you'd have to google  
that y'self.

Jason
On 06/03/2009, at 1:33 PM, urdabum wrote:

>
> Hi People,
>
> how can i cap the text limit on the comment field? just want to cap
> the limit to like 255 character, is that possible?
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---

Reply via email to