What else is in your controller? Anything in application.rb?
-----
Ryan Bigg
Freelancer
http://frozenplague.net







On 25/11/2008, at 11:11 AM, Alberto Cardinalli Jr. wrote:

> OK, first I tried to call logger.info 'message' but nothing was  
> logged (development.log). After this I installed ruby-debug and put  
> an "debugger" instruction but the execution didn't stopped on that  
> point. So I really believe that the destroy method isn't being  
> called, but why?
> I know that is something really stupid but can't see what's wrong ...
> Ryan, the controller is 'admin/products_controller.rb'.
> I will try to fix it using the link Rick suggested.
>
> Thanks,
>
> --
> Alberto
>
>
> On Mon, Nov 24, 2008 at 9:29 PM, Rick <[EMAIL PROTECTED]>  
> wrote:
>
> Hey Alberto,
>
> Take a look at this site, I think it's pretty close match to what you
> are trying to accomplish:
>
> http://icebergist.com/posts/restful-admin-namespaced-controller-using-scaffolding
>
> Rick
>
> On Nov 24, 2:19 am, Ryan Bigg <[EMAIL PROTECTED]> wrote:
> > The link should be:
> >
> > <%= link_to "Delete", admin_product_path(product), :method
> > => :delete, :confirm => "Are you sure you want to delete this
> > product?" %>
> >
> > Just to clarify: the controller you mean is admin/
> > products_controller.rb, right?
>
>
>
> >


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