Fix callback url building
Use respond_to {|format| ...}