title: What does to_proc method mean in Ruby?
body: <p>I am learning rails and following <a href="https://stackoverflow.com/questions/1961030">this thread</a>. I am stuck with the <code>to_proc</code> method. I consider symbols only as alternatives to strings (they are like strings but cheaper in terms of memory). If there is anything else I am missing for symbols, then please tell me. Please explain in a simple way what <code>to_proc</code> means and what it is used for.</p>