Does not work, it links to the 'delete action' which does not exist,  
it needs to go to the destroy action.

Justin

On Jan 7, 2009, at 9:56 PM, Roy Wright wrote:

>
>
> On Jan 7, 2009, at 10:39 PM, [email protected] wrote:
>
>>
>> I seem to have run into an odd issue. I am trying to create a simple
>> link_to "delete", resource(@snippet), :method => 'delete' and it does
>> not seem to work. It renders:
>>
>> <a method="delete" href="/snippets/5">delete</a>
>>
>> I am wondering how I can make this happen without using the
>> delete_button helper...
>
> Try:
>
>   link_to('delete', resource(obj, :delete)
>
> Here's a good reference:
>
>   http://wiki.merbivore.com/development/resource_urls
>
> HTH,
> Roy
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to