I'm parsing the URL in Rails controller using URI.parse, i.e.
URI.parse(user_URL)
When the user inputs something such as %, the webpage raises the error
bad URI(is not URI?): %
and shows error page.
Rather, I'd like it to go to my page which says "Your URL % is not valid". Is it possible?