ruby on rails - resource_url generating wrong url -
i have rails app in subdirectory of server, www.domain.com/sub need send url e-mail, tried use "resource_url" generates link www.domain.com/resource_path, should wwww.domain.com/sub/resource_path.
how can solve ?
thanks!
in rails 2.3.8 can add line config/environments/production.rb
actioncontroller::base.relative_url_root = "/sub"
i not sure equivalent rails 3, see question if using: what replacement actioncontroller::base.relative_url_root?
Comments
Post a Comment