On Aug 10, 3:34 pm, Wap Addon <[email protected]>
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

You've got a typo here - formate/format

Fred

>   end
>
> pro_categories is table name i want to insert record in this table
> but bad luck i can not do it
> --
> Posted viahttp://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