Answer the question
In order to leave comments, you need to log in
What is the point of such an arrangement of colons?
Learned quite a lot about Ruby before starting to learn Rails. But in one book he missed a rather important point: he didn’t figure out the setting of colons.
One thing is clear: colons before a word denote symbols in the language. But I think I missed something about hashes somewhere. Please help me figure it out. For example, here is a piece of code:
has_many :comments
validates :title, presence: true,
length: { minimum: 5 }
Answer the question
In order to leave comments, you need to log in
This is a new version of the hash record, according to the old it will be like this
If you try to remake it in a human-readable
way Check the title for the presence of a minimum length of 5 characters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question