In fact... I only follow this guide :) :
http://dougireton.com/blog/2013/01/07/creating-an-lwrp-part-2/

I can change this to @new_resource.name without too much problems ;)