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 trialDenny Ku
Courses Plus Student 7,437 PointsAdding Interactivity: The "Uncaught error "
Following the step and the code is the same as the video,
but when running on the bowser,still can't add the class ".hover" to the ".statuses".
I know the pseudo class may solve this problem,
but still wanna know the solution using coffee script.
(I guess this problem might be caused by the version of coffee-rails or some other gems,
but I can't google the solution to it")
The markdown doesn't work ,so I push my code to github: This is my code
1 Answer
Jason Shive
2,838 PointsTry this, only difference I see
change $('.status').hover(event) -> to $('.status').hover (event) ->
Space between hover and (event). I don't think the hover function takes a variable and (event) stands on its own.