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


-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to