Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Rails Routes and Resources A Route to a Delete Action Deleting Pages

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

Despite trying out extensive Stack Overflow and Google Fu answers, nothing worked except what is in the title. There were lots of suggestions to require jQuery which I did but to no avail.

I also noticed in the posts show.html.erb file that was created using rails generate scaffold, it also uses button_to and not link_to.

Now it look ugly since some are links and one is a button.