🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • bashburn
    bashburn
    7,611 Points

    Delete request kept being sent as GET request. Issue only fixed by changing link_to to button_to.

    Posted December 26, 2021 5:40am by bashburn
    bashburn
    7,611 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Deleting Pages

    1 Answer

  • MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points

    The delete method posted on this video isn't working for me since I am still using sinatra.

    Posted December 3, 2018 4:28am by MaryAnn Eleanya
    MaryAnn Eleanya
    8,626 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Deleting Pages

    1 Answer

  • Peter Buckwalter
    Peter Buckwalter
    6,846 Points

    Assigning prefixes when using the resources :pages method

    Posted October 30, 2018 8:06am by Peter Buckwalter
    Peter Buckwalter
    6,846 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Rails Resources

    1 Answer

  • Andrea Gomez
    Andrea Gomez
    8,609 Points

    Delete method not working on Rails 5.1.4

    Posted January 16, 2018 1:27am by Andrea Gomez
    Andrea Gomez
    8,609 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Deleting Pages

    3 Answers

  • Brendan Whiting
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Brendan Whiting
    Front End Web Development Techdegree Graduate 84,738 Points

    Why is 'delete' renamed to 'destroy'?

    Posted November 30, 2017 9:22am by Brendan Whiting
    .a{fill-rule:evenodd;}techdegree seal-36
    Brendan Whiting
    Front End Web Development Techdegree Graduate 84,738 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Rails Resources

    1 Answer

  • Karrtik Iyer
    Karrtik Iyer
    3,738 Points

    Instead of method:delete in erb can we use delete_path or destory_path?

    Posted July 30, 2017 2:33pm by Karrtik Iyer
    Karrtik Iyer
    3,738 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Deleting Pages

    1 Answer

  • Andrew Schrenk
    Andrew Schrenk
    11,557 Points

    Where does the "pages_path"" method come from?

    Posted July 15, 2017 10:40pm by Andrew Schrenk
    Andrew Schrenk
    11,557 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Deleting Pages

    2 Answers

  • mahdi mostafa
    mahdi mostafa
    9,750 Points

    Delete not deleting (Ruby)

    Posted May 22, 2017 9:23pm by mahdi mostafa
    mahdi mostafa
    9,750 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Deleting Pages

    0 Answers

  • Alex Bannon
    Alex Bannon
    4,841 Points

    In Rails, Why Are Methods Symbols?

    Posted April 30, 2017 9:34pm by Alex Bannon
    Alex Bannon
    4,841 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Filters

    1 Answer

  • Danish Saleem
    Danish Saleem
    7,965 Points

    No route matches [DELETE] "/pages/4"

    Posted April 27, 2017 2:34am by Danish Saleem
    Danish Saleem
    7,965 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Deleting Pages

    1 Answer

  • PoJung Chen
    PoJung Chen
    5,856 Points

    Prefix in routes can be set manually?

    Posted February 20, 2017 9:20am by PoJung Chen
    PoJung Chen
    5,856 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Rails Resources

    1 Answer

  • Jin Cao
    Jin Cao
    4,067 Points

    Your next step should be to learn the details of how models views and controllers work separately.

    Posted December 12, 2016 3:53am by Jin Cao
    Jin Cao
    4,067 Points
    • Ruby
    • Rails Routes and Resources
    • A Route to a Delete Action
    • Summary

    5 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.