insert record in table error

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 \}

You've got a typo here - formate/format


<% form_for(@pro_categorie) do |f| %>

Have you added map.resources :pro_categories in your routes.rb file ?
THat's the price you must pay to be able to use this short form. If
you have then the most likely reason is rails getting confused about
the pluralization


Frederick Cheung wrote: