Device views to haml