refactored Resource#url_for_action