I have two tables that look like following:
RELEASE TABLE
name
asin
MATCHES TABLE
date
asin
I want to show a paginated page that shows all the RELEASES that have MATCHES. That is the asin column in RELEASE needs to match the asin column in MATCHES.
How would I do that using the paginate method assuming I have all the models included in my controller?
1 Answer