insert record in table error

Wap Addon wrote:

i have cateadd.html.erb file in admins folder and i want call admins
controller and define method like this

           def cateadd
    @pro_categorie = ProCategorie.new
    respond_to do |formate|
    format.html # new.html.erb
               format.xml { render :xml => @pro_categorie }
             end
  end

pro_categories is table name i want to insert record in this table
but bad luck i can not do it

I believe rails pluralization rules may be getting confused here.. try
renaming your model to "ProCategory" or add:

class ProCategorie
   set_table_name "pro_categories"
end

hth
ilan