density attribute not working for smoke
Make sure your smoke has been simulated a bit before you render it.

You can quickly simulate it by playing the animation (AltA), or you can cache it more permanently by baking it (press Bake in Properties > Physics > domain settings > Smoke Cache).

Once you have done that, you should be able to see the smoke in the viewport and the render.