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

Gil Aguilar
Gil Aguilar
8,813 Points

Trying to get my toggle function to work and it doesn't display ...

Here is my code ... I am currently in the statuses.js.coffee

$ -> $('.status').hover (event) -> $(this) .toggleClass("hover)")


I know someting is wrong because the words aren't changing color to indicate they are being called or more appropriately the functions aren't being called ... I am on a Windows machine and was wondering do I have to add something to my index.html.erb page ? Any help would be greatly appreciated sorry I am a newbie but this is fun cheers ...

gil

1 Answer

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Gil Aguilar it looks like you have an extra closing parenthesis on the end. Try removing that and see if it helps.

Gil Aguilar
Gil Aguilar
8,813 Points

Thank you Jason that solved that right away. I am extremely dyslexic so I always spend large amounts of time getting snagged up by things like that. Cheers ...