The problem is that the scaffolding-generated User Delete link discussed in Chapter 2 section 2.2.1 does not do a delete. Instead, it does the same as the Show link.
I have searched for this issue and found a couple of reports ( Why Delete link doesn't work in this Ruby on Rails project? and Rails 3 :method=> :delete doesn't work in Internet Explorer ) but they were 4 and 5 years ago and suggested solutions referenced rails and gem versions considerably older than what's current.
Furthermore, one of the suggested solutions that seemed to work for some people was to modify application.html.erb to use <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> instead of <%= javascript_include_tag 'defaults', 'data-turbolinks-track' => true %> but that would undo the fix to a problem I posted a few days ago (Michael Hartl's Ruby on Rails Tutorial, toy_app user tour).
I am using Firefox on Windows 7, and my gem file is below. I have verified that Javascript is enabled in the browser. What would be an appropriate fix for current versions of rails, etc?
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'sass-rails', '~>5.0'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.3'
gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '~> 0.4.0', group: :doc
group :development, :test do
gem 'sqlite3'
gem 'byebug', '3.4.0'
gem 'web-console', '~> 2.0'
gem 'spring', '1.1.3'
end
group :production do
# Gems for Heroku deployment
gem 'pg'
gem 'rails_12factor'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]