search for: product_categori

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

Did you mean: 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 lik...
2007 Nov 05
6
Strange wildcard problem
.... Now, the ferret query that gets constructed when we do the relevant queries simply looks like: ''ferret_product_tuple:x00082_?????_?????x'' and this would, in the above instance, match that supplier. Everything I''ve described works _perfectly_, EXCEPT... we also index product_categories on this same string. So product category #82 would have a bunch of ferret_product_tuple strings that start out x00082 and have various things in the other positions. Here''s what''s strange... a product_category query for ''ferret_product_tuple:x?????_?????_?????x&...
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 precedes a required segment. This segment will be
2007 Sep 05
8
Hi..Guys new plugin again
...an order_lines table containing a position column, to an id column in a orders table, the plugin creates: OrderLine.belongs_to :ordersOrder.has_many :lines, :order => :position The plugin also supports the creation of has_and_belongs_to_many associations. For example, given the tables product_product_categories with foreign- keys to both the product and product_categories tables, the plugin creates: Product.has_and_belongs_to_many :categoriesProductCategory.has_and_belongs_to_many :products And finally, notice that in one of the previous examples, the association name used for the Order.has_many is :li...
2006 Apr 01
0
Newbie question: How to reference models in subdirectories
...R 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" However, when I reference a model in a different subdirectory, I get an uninitialized constant error, i.e. belongs_to :currencies, :class_name => ''CrossApplications::Currency'' => /usr/local/lib/ruby/gems/1.8...