search for: find_all_elements

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

2005 Nov 18
6
wrong number of arguments (2 for 1) error message help
...tem = Item.find(:first, :conditions => "id = ''#{$itemnew.id}'' and user_id = ''#{@user.id}''") itemtablename = "Item_#{@newitem.id}" #ItemDesign.new("Item_#{@newitem.id}") @itemdesigns = ItemDesign.find_all_elements(itemtablename) render :action => ''page2'' end Now the ItemDesign is a model class that i created myself right now it looks like this in its entirety: class ItemDesign < ActiveRecord::Base attr_accessor :table_name def self.find_all_elements(table_name) @...