search for: specific_category_nam

Displaying 1 result from an estimated 1 matches for "specific_category_nam".

Did you mean: specific_category_name
2006 Jul 19
5
weird result for a custom attr reader!
Hi all, I am having a weird problem reading a value from my model. basicaly, I have these two models: class Category < ActiveRecord::Base acts_as_tree :order => "name" belongs_to :item_type has_many :specific_category_names end and class SpecificCategoryName < ActiveRecord::Base set_table_name "Specific_category_names" has_many :products belongs_to :brand belongs_to :category #if there is no name, use the name of the category def name if @name.nil? category.name else...