Solved

Using Link_to in ruby?

Posted on 2013-11-27
1
247 Views
Last Modified: 2013-12-04
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
Comment
Question by:Mark_Co
1 Comment
 
LVL 18

Accepted Solution

by:
Steven Harris earned 500 total points
ID: 39682618
This is a line used to delete (destroy) a user submission through a user form.

Basically, delete their comment or post.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can't update rails - requires RubyGems version >= 1.3.6 11 3,551
SSH Rail Server Command 7 990
what is a code editor debugger 2 179
Merge XML files using a unique key? 8 89
In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now