Fixed ruby 1.8.7 syntax error in StyleguideController

Wasn't working for me in 1.8.7 so @psynix kindly made this fix. I'm just passing it on.