Forum: Ruby on Rails Limiting text tinput.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
67654ec62eab59ae168f2c58250d65dd?d=identicon&s=25 raj ma (Guest)
on 2007-05-23 23:21
I want to limit blog entry to 500 words.

How do I do and handle it.

Thank you.

PS: new bee.
4715ae8a9ac5152600ccd3012267ab6b?d=identicon&s=25 James Stewart (Guest)
on 2007-05-23 23:33
(Received via mailing list)
On May 23, 2007, at 5:21 PM, Ravindraraj Mamadgi wrote:

>
> I want to limit blog entry to 500 words.
>
> How do I do and handle it.

Take a look at:

http://rails.rubyonrails.org/classes/ActiveRecord/...
ClassMethods.html#M000942

James.


--
James Stewart
Blog: http://jystewart.net/process/
3df67e886c0d8151475beadad0a884fd?d=identicon&s=25 Sean T Allen (Guest)
on 2007-05-23 23:34
(Received via mailing list)
i would use validates_length_of

and suggest you get a copy of Agile Web Development w/ Rails.
it will probably help you quite a bit.
67654ec62eab59ae168f2c58250d65dd?d=identicon&s=25 raj ma (Guest)
on 2007-05-24 00:27
Thank you.

I am completely new and getting familiar with all the things available.
I am reading that book also.
This topic is locked and can not be replied to.