Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

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

0
Mark_Co
Asked:
Mark_Co
1 Solution
 
Steven HarrisPresidentCommented:
This is a line used to delete (destroy) a user submission through a user form.

Basically, delete their comment or post.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now