search for: product_category

Displaying 8 results from an estimated 8 matches for "product_category".

2006 Apr 19
2
I need help in ActiveRecord..
I have this Product.find(:all, :include => [:brand, :category, :type], :group => "description"), but it dont group by description why? Bruno -- Posted via http://www.ruby-forum.com/.
2012 Feb 02
3
MVC questions with rails
2006 Nov 17
6
RESTful routes and resulting urls
if I have the following in my routes.rb: map.resources :product_categories it provides urls such as: /product_categories /product_categories/1 /product_categories/1;edit etc. and uses the ProductCategories controller. how can I keep the same controller (and model) but set up the resources so that I can have any abitrary url point to the existing controller, much like specifying the controller
2007 Nov 05
6
Strange wildcard problem
...h of which are indexed on a similar (but separate) non-model field. However, one of those two models does not seem to get the proper number of results for a wildcard search: First of all, there''s a non-indexed model called ProductTuple that''s got a supplier_id as well as a product_category_id and product_material_id as well as some other id fields that aren''t really important here. Thus, a ProductTuple has foreign key relationships to Suppliers and ProductCategories and ProductMaterials, but for ferret purposes just think of those foreign keys as what they are - ids...
2006 Jul 26
1
How to create table entry with multiple related categories?
Perhaps I should create a table row to hold an array of category ID''s? There''s probably an easy standard way of doing this in RoR and I just can''t wrap my brain around a practical way to do this right off. Specifically... I have a table that contains my product category names and another table that contains my actual product names with other product specific
2008 Jan 11
0
how do I get rid of this routing warning?
map.category ''product_category/:page/path/:path'', :controller => ''product_category'', :action => ''show'', :requirements => {:path => /.+/, :page=>/\d+/}, :page =>1 warning is "Route segment ":page" cannot be optional because it...
2007 Sep 05
8
Hi..Guys new plugin again
Hi.. Guys new plugin again Foreign Key Associations is a plugin that automatically creates associations based on foreign-keys. The associations are created at runtime-ie. as your ActiveRecord models are loaded-so they will always be up-to-date. For example, given a foreign-key from a customer_id column in an orders table to an id column in a customers table, the plugin creates:
2006 Apr 01
0
Newbie question: How to reference models in subdirectories
Hi, new to RoR I am probably going to embarrass myself now: I have models organised in subdirectories, i.e. models |--material |--product.rb |--cross-applications |--currency.rb When I try to reference another model within the same subdirectory, everything works fine, i.e. belongs_to :product_categories, :class_name => ''Material::ProductCategory"