On Aug 11, 2:49 pm, Wap Addon <[email protected]>
wrote:
> Frederick Cheung wrote:
> > On Aug 11, 2:23 pm, Wap Addon <[email protected]>
> > wrote:
> >> i have table pro_categories and i am handle add update from admins
> >> controller but can not destroy record from there i mean using admin
> >> controller
>
> > What happens when you try ?
>
> > Fred
>
> it's url is like thishttp://127.0.0.1:3000/pro_categories/1but i have
> no pro_categories controller so i want to define this delete method in
> admin controller and i want to delete pro_categories's record.(actually
> i have procategorie model.)

either fiddle with your routes so that you have an admin namespace (so
that you can do stuff like link_to 'destroy', admin_product_path
(p), ...) or don't use the restful stuff.

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