search for: categories_ids

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

2006 Jun 29
2
HABTM with multiple select list
...tiveRecord::Base   validates_presence_of :name   has_and_belongs_to_many :titles end --- ----view Category Mappings: <% options = options_from_collection_for_select (@categories, ''name'',''id'', @category_ids) %> <%= select_tag(''categories_ids[]'', options, {:multiple=>true, :size=>7}) %> ---- I am getting error: Couldn''t find Category without an ID Please help. Thanks. Inessa. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gma...
2006 Feb 28
1
Wrong id after join!
The Problem ----------- After using a join in my find the id attributes set in my Entity objects are wrong! It is setting the Entity id to the value from Postcode id! The Code -------- entities = Entity.find(:all, :conditions => [...omited...], :joins => "as e inner join postcodes as pc on substring_index(e.postcode,'' '', 1) =