True, that's what I usually do. But [this railscast](http://railscasts.com/episodes/324-passing-data-to-javascript?view=asciicast) gave me good reasons to experiment this method.

However, you're right, since our case is very simple (we have very few data to pass, and they don't need to be JSONified), we might be better off sticking with javascript variables.