I want to add the current controller/action as a class to the <body>
tag in my application layout template.
Here is an example of what I am trying to achieve:
# router.coffee
App.Router.map ->
@resource 'products'
# application.hbs
<!DOCTYPE html>
<html>
<body class={{current-route-goes-here}}>
...
</body>
</html>
The desired result would be <body class="products">
How can I add this logic to my layout?