How to get routing variables in model

Hi folks,

In routes.rb I specified some routing urls, like below,

map.login ‘/login’, :controller => ‘account’, :action => ‘new’

Here I want to use this login_path in my any one of model, Is it

Whether I have to create one separate model and inherit this routing
module to it, or else can we directly call this routing variables in my


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs