Fixed local paths to Rails slim and setup templates in "rew" function.