Skip to content Skip to sidebar Skip to footer

Multiple Model Scope With Multiple Where Statements

I've got an app that deals with websites. There's a model called 'sites', which has_many pages. The sites model has a column called homepage. The list of pages for each site contai

Solution 1:

You can use this : .where("pages.url NOT LIKE '%robots.txt'")


Post a Comment for "Multiple Model Scope With Multiple Where Statements"