search for: asset_type_id

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

2007 Jul 23
2
ActiveRecord.find :group option
I have a very simple find call... @assets = Asset.find(:all, :group => ''asset_type_id'', :order => "name") I have 3 Asset objects in my database, all of which have asset_type_id equal to 1. Why does this query only return 1 object? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message becaus...
2007 Nov 08
0
Dynamic relation with eager loading
A model has 2 columns in its table asset_type_id asset_id the asset_type_id links directly to the table asset_types via a belongs_to asset_types contains a single column ''name'' method_missing in the model says when you call a method matching /^asset.*/ call the corresponding method substituting ''asset'' for t...