I want to generate a url for the current action based on the current
url but with one of the parameters changed, so i do this :
@params[''show_all''] = 1
url = url_for @params
this works fine when the controller sits at the site root, but if it''s
in a sub directory, the directory name gets appended twice.
for example:
dashboard/user/update?show_all=0
after running my code, it should give me :
dashboard/user/update?show_all=1
but it actually produces:
ashboard/dashboard/user/update?show_all=1
i tried using the :only_path = true option with url_for but I get the
same problem
any ideas?
thanks
alan