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

Ruby Build a Simple Ruby on Rails Application Frontend Development Adding Interactivity

Seph Cordovano
Seph Cordovano
17,400 Points

$(this).toggleClass("hover") not working correctly

I tried it out and made sure that I had all the right gems, and I do, but it seems to not be working for some reason. The console.log("Hover triggered") seems to be working fine.

The "this" in $(this).toggleClass("hover") also doesn't highlight for some reason like the rest of the action text.

1 Answer

Seph Cordovano
Seph Cordovano
17,400 Points

Turns out it was a misspelling in my CSS. Such a rookie error. Sorry guys, happy coding!