Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7179179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:05:18+00:00 2026-05-28T17:05:18+00:00

I am currently attempting to follow along with section 10.38 from RoR Tutorial. All

  • 0

I am currently attempting to follow along with section 10.38 from RoR Tutorial. All is going well, but the delete user link is bringing me to the user’s profile page, rather than deleting the user. If I inspect the delete user link in chrome I see this:

<a href="/users/15" data-confirm="You sure?" data-method="delete" rel="nofollow" title="Delete Bob Johnson">delete user</a>

I have also included <%= javascript_include_tag :defaults %> as mentioned by Hartl in my application layout file.

I am running rails 3.1.3 and Ruby 1.9.3.

Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:05:19+00:00Added an answer on May 28, 2026 at 5:05 pm

    The Hartl book has not been fully updated yet for Rails 3.1/3.2 (I think the first couple sections are available as a beta “second edition”). In Rails 3.1, you should be using <%= javascript_include_tag "application" %>, not :defaults, otherwise the data-method="delete" part won’t be handled properly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently attempting to implement a custom gridview interface to display data from
I'm attempting to create Data Access Layer for my web application. Currently, all datatables
I'm currently attempting to retrieve a list of objects from my database using jQuery.
I am currently attempting to have the browser automatically prompt the user to save
Using NPOI and attempting to follow a tutorial here: http://www.zachhunter.com/2010/05/npoi-excel-template/ , I'm coming across
I'm attempting to follow railstutorial.org, and am currently on Chapter 7, where you start
I'm currently attempting to create a tabbed interface in a web application, and based
I'm currently attempting to migrate a legacy VBA/Microsoft Access application to Python and PyQt.
I am currently attempting to use Lucene to search data populated in an index.
I'm currently attempting to code one for part of a college project - binary/hex

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.