Fix routes and views paths in generator