Re: Filtering by related model...

2011-01-09 Thread Amit Badkas
Hi, Could you please show me the structure of categories table. I need to know surely if Product belongs to Category or Product has many Category or Product has and belongs to many Category. Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Sat, Jan 8, 2011 at 1:25 AM, TSG

Filtering by related model...

2011-01-07 Thread TSG
I know I've read this somewhere, but I've been searching for an hour now and cannot find it. I have a Product model I have a Category model A product can have many categories The categories table has a field, slug, that is used for SEO purposes. I currently have a beautifully formatted,