title: Ruby on Rails: how do I call an action that has params from another action
body: <p>So I want to do this:</p>
  
  <pre><code>save_to_library(params) if params[:commit] == "lib"
  </code></pre>
  
  <p>but save_to_library apparently doesn't take any arguments.</p>
  
  <p>how do actions get params if they don't take arguments?</p>
  
  <p>(I know this action works when I link to it directly... just trying to streamline usability)</p>