Add a JavaScript display to the Home page to count down from 140 characters. (Rails Tutorial, 2nd Ed, Chapter 10, Exercise 7)
This exercise was a bit tricky. Figured I'd post my solution to see if anyone did it differently or if there's anyone who knows a better way. I'm not sure on best practices for using the Asset Pipline .. for example, the correct order to put things in the application.js manifest file, or when to put things in lib versus app. I just put the following in lib to try getting it to work. From Michael Hartl's Rails Tutorial 2nd ed Chapter 10, Exercise 7: (challenging) Add a JavaScript display to the Home page to count down from 140 characters. First, I read this post about jQuery Twitter-like