use rails routes helpers code example Example: rails include route helpers in console include Rails.application.routes.url_helpers