I have a column in my ActiveRecord
database that I want to have a certain word limit.
Essentially, I've created a form that allows users to enter text(string). I want to limit the amount of characters that are allowed in that string.
@allposts = Post.limit(20)
This is what I have so far in the get method for the /current
page that posts all of content. 20 = number of posts shown.
I also have a /new
page where users will post new content.