title: conditional form post URL's simple_form_for
body: <p>I have 2 forms, both use Credit Card processing, meaning, they both have same checkout process. This check out form is a partial on both these forms.</p>
  
  <p>so what I am trying to achieve is have a conditional POST URL statement in simple_form_for tag like below</p>
  
  <pre><code>&lt;%= simple_form_for :order, url: task_path(params[:task_id], params[:id] if condition else something_else ) do |f| %&gt;
  </code></pre>
  
  <p>Is it possible to achieve this in Rails.</p>