Running it through the erb processor is needed to inject the haml views. erb(X) just means looks for inline ruby code and parse it.