Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Implementing AJAX - javascript not running

When I click the button my user_friendship.js does not run and I am redirected to the new_friendship_path where it asks's "Do you really want to be friends with..."

I've gone through the videos a couple times so I'm sure my code matches Jason's. Javascript is enabled in my browser. Checking the log it shows a GET to the new_friendship_path instead of the desired POST to the user_friendships_path.

Not sure how to troubleshoot this...

1 Answer

Jason Seifer
Jason Seifer
Treehouse Guest Teacher

Hey Matthew, can you zip up your project directory and send it to help@teamtreehouse.com?