In our site, users can have a url associated with their account to which
they are redirected when their login expires. This can differ from user
to user, and is prone to being mis-copied, or the sites in question not
being there any more etc. I’d like to test if the url is valid before
sending the user on to it.
So, i want, in the controller, to do something like this -
Can anyone tell me a nice, simple and efficient way of doing the
You’re probably right about testing the validity at the point of adding
it rather than (or as well as) the redirect. I think i’ll put a remote
test button next to the input field, and maybe call it automatically on
change of the field.
Anyway, thanks again.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.