You should be able to use the standard rails URL helpers here.