Hi there,
I try to make simple search items in database, but unfortunately, I
cant to get the results... always. I am trying to search the items with
using of following command:
But unfortunately, I am not getting any result... Of course, the item
with the name 'abcd' in database exist... The weird is this, that when I
try to edit the command:
The data in your database may have spaces after it that you are not seeing. The find is not returning what you expect because it is trying to match an exact string. ‘abcd’ does not equal 'abcd '. Check the data in your database to make sure there are no spaces after it. A simple check would be to run the following in irb: