Chapter 6Jazzing up with JavaScript

Our web application is now coming along nicely—we have a number of pages, a database of songs, login functionality, and an email contact form. In this chapter we’re going to go use JavaScript to add some extra effects and functionality to the front end of the application.

We won’t be getting our hands dirty writing JavaScript, though. Instead, we’ll use CoffeeScript—a nicer alternative to all the brackets and curly braces of JavaScript —that will then be compiled into JavaScript for us.

In addition, we’ll be using the jQuery library to add a date-picker to the song form to make entering a date easier. Then we’ll finish off by adding a Like button to each song, so that users can show their love for the song. ...

Get Jump Start Sinatra now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.