fixing url in case it finishes with slash
adding after_render filter to controllers' render method