On Feb 15, 3:51 pm, brent brent <[email protected]> wrote:
> Folks
>   Does anyone know how i could call destroy on a controller using rails
> 3.1 from a jquery function. Im just trying to find some examples online
> and cant seem to find anything that shows this. Thanks
>
> --
> Posted viahttp://www.ruby-forum.com/.

I think this will work:

$.ajax({
  type: 'delete'
  [...other stuff...]
});

Regards.

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