Try this
<%= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' } %>
More Related Contents:
- ActiveRecord OR query
- Multiple objects in a Rails form
- ActiveRecord Query Union
- Rails routing to handle multiple domains on single application
- Rails where condition using NOT NIL
- How to set-up jquery-ui autocomplete in Rails
- STI, one controller
- Rails: How does the respond_to block work?
- Heroku deployment failed because of sqlite3 gem error
- Error installing Nokogiri 1.5.0 with rails 3.1.0 and ubuntu
- A migration to add unique constraint to a combination of columns
- POST JSON to API using Rails and HTTParty
- Devise update user without password
- Paginating an Array in Ruby with will_paginate
- Purge or recreate a Ruby on Rails database
- libffi.so.6: cannot open shared object file in rails
- 400 Bad Request – request header or cookie too large
- Rails + Postgres drop error: database is being accessed by other users
- Haml: Control whitespace around text
- undefined method `visit’ when using RSpec and Capybara in rails
- How to change a Ruby on Rails application name?
- Rails: “Next post” and “Previous post” links in my show view, how to?
- How to configure Log4r with Rails 3.0.x?
- Why can’t I install the SQLite gem?
- Error message: Make sure that `gem install pg -v ‘0.18.1’` succeeds before bundling
- RVM installed by Ruby not working?
- Non persistent ActiveRecord model attributes
- Heroku SSL on root domain
- Rails 4.0 expire_fragment/cache expiration not working
- How to skip a before_filter for Devise’s SessionsController?