Can anyone help me in this issue, Like I have two dimensional array like this
array = [[1, 'go'], [15, 'flat']........]
And I have table in the database called FeedPost, now in the 2D array the first element in each array means to a column user_id and the second one means to the column feed_type. Now I want to get all the records from that table that fulfills that array elements exactly matches to these exact column. in other word i wanted do something like that,
FeedPost.find_all_by_user_id_and_feed_type(array)
but unfortunately it shows following argument error.
ArgumentError: wrong number of arguments (1 for 2)
So anyone can help me in this issue please?