On Aug 11, 6:34 am, Wap Addon <[email protected]>
wrote:

>
>    <% 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

Fred
>     <%= f.error_messages %>
>   <table align="center">
>   </tr>
>   <td><lable>Category Name :</lable></td>
>     <td><%= f.text_field :pcate_name %></td>
>   </tr>
>   <tr>
>     <td><lable>Category Description :</lable></td>
>     <td><%= f.text_field :pcate_desc %></td>
>   </tr>
>
> </table>
>     <%end%>
> </div>
>
> i got error
>  Showing app/views/admins/cateadd.html.erb where line #5 raised:
>
> undefined method `pro_categories_path' for #<ActionView::Base:0x4839358>
> --
> 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