search for: element_type_id

Displaying 2 results from an estimated 2 matches for "element_type_id".

2006 Mar 24
1
Multiple table relationships
...ing table structure. I understand how to do a two table has many join but I actually need to relate a third table. Here is my structure: components id name updated_at elements id name updated_at element_types id name updated_at components_elements component_id element_id element_type_id updated_at My Component model has the following: class Component < ActiveRecord::Base has_and_belongs_to_many :elements end I haven''t actually added anything to my Element model but suspect that it also needs a habtm association. My bigger issue is, how to I associate things with...
2006 Dec 26
0
acts_as_taggable Plugin issue (not gem)
...iations.rb:550) => [#<Element:0x330a8d8 @attributes={"name"=>"Koji Test One", "updated_at"=>"2006-11-30 18:16:40", "id"=>"1", "description"=>"supa sexy description", "filename"=>nil, "element_type_id"=>"3", "created_at"=>nil}] But this does not (because there is no value in params[:tag_list]: > @elements = Element.find_tagged_with(params[:tag_list]) NameError: undefined local variable or method `params'' for #<Object:0x1f59f0> from (irb)...