Can Rails Routing Helpers (i.e. mymodel_path(model)) be Used in Models?
In Rails 3 and higher: Rails.application.routes.url_helpers e.g. Rails.application.routes.url_helpers.posts_path Rails.application.routes.url_helpers.posts_url(:host => “example.com”)