E
E
eldar_web2018-07-30 11:27:00
Ruby on Rails
eldar_web, 2018-07-30 11:27:00

How in Ruby on Rails can you find out the correspondence between model fields and hash?

Let's say there is a model:
Model с полями name, age и т.д.
And there is a hash (for example, list) with only name and age fields.
How can you check if these two match by value and by count without resorting to a loop?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question