title: Using form_for tag with get method
body: <p>I am trying to Submit a form using get method. Earlier I was trying a similar thing with form_tag and it was working but now when I changed to a form_for tag, this doesn't seem to work.</p>
  
  <pre><code>&lt;%- filter_path = params[:action] == "index" ? posts_path : sneak_peek_posts_path %&gt;
  &lt;%= form_for(@post_filter, :url=&gt; filter_path, :method =&gt; :get) do |f| %&gt;
  </code></pre>
  
  <p>I get a no routes error.</p>