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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -