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

Adding Interactivity

With this lesson I noticed from the start there was a much easier way of doing it without javascript.

Which is instead of .hover just add :hover so it so exactly the same but it will reduce load time as it doesnt need to load any javascript.

I'm guessing you are referring to this lesson:

http://teamtreehouse.com/library/programming/build-a-simple-ruby-on-rails-application/frontend-development/adding-interactivity

It's always a good idea to provide a link whenever referencing any particular lesson. By the way, here are some hopefully helpful tips on how to make better posts on the forum

Yes I was sorry about that. Thanks

1 Answer

I noticed this as well, using CSS ':hover' has the exact same effect......