search for: itemtablename

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

2005 Nov 18
6
wrong number of arguments (2 for 1) error message help
.... When I add a new item to the items table I am also creating several associated tables. the code for this so that you can follow along is: def create @item = Item.new(params[:item]) # The item belongs to the user @user.reload @item.user = @user if @item.save itemtablename = "Item_#{@item.id}" ActiveRecord::Schema.define do create_table(itemtablename, :options => ''ENGINE=InnoDB DEFAULT CHARSET=utf8'') do |t| t.column :field_type, :string, :null => false t.column :body, :text, :null => true...