We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd3074 commit 2fe064eCopy full SHA for 2fe064e
app/models/micropost.rb
@@ -1,2 +1,3 @@
1
class Micropost < ActiveRecord::Base
2
+ validates :content, length: { maximum: 140 }
3
end
0 commit comments