Using Link_to in ruby?

Can someone tell me what this line of code in Rails means?
<%= social_network.name %>&nbsp;<%= link_to 'Destroy', social_network, method: :delete, data: { confirm: 'Are you sure?' } %>

Open in new window

Mark_CoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Steven HarrisConnect With a Mentor PresidentCommented:
This is a line used to delete (destroy) a user submission through a user form.

Basically, delete their comment or post.
0
All Courses

From novice to tech pro — start learning today.