title: Rails How to Generate a Google Drive-like permalink?
body: <p>When we share a Google Drive Form, it will give our a public url.</p>
  
  <p>How can we implement this in our Rails application? It should be random and not repeated.</p>
  
  <p>Could anyone help me? Thanks.</p>
  
  <p><strong>Update</strong></p>
  
  <p>I mean like this url : </p>
  
  <p><a href="https://docs.google.com/forms/d/1PPVIMrDo61Er9tqYlJRntfNT73jpxtd_YJGGjXOMlAw/edit?usp=drive_web" rel="nofollow">https://docs.google.com/forms/d/1PPVIMrDo61Er9tqYlJRntfNT73jpxtd_YJGGjXOMlAw/edit?usp=drive_web</a></p>
  
  <p>But I want a url like this form:</p>
  
  <p><a href="http://yourhost.com/1PPVIMrDo61Er9tqYlJRntfNT73jpxtd_YJGGjXOMlAw" rel="nofollow">http://yourhost.com/1PPVIMrDo61Er9tqYlJRntfNT73jpxtd_YJGGjXOMlAw</a></p>