Answer the question
In order to leave comments, you need to log in
How to display data from a table added in the last 3 days in rails?
Hello, please help me sort this.
There is a database of hospital patients, I want to display only those who have been admitted in the last 3 days.
For the experiment, I tried to do something like this in the console: user = User.where(enter_date: 2015-11-27)
But on the output, just subtraction actions occur and an empty array is returned)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question