title: RAILS3: Pass arbitrary parameters via button_to?
body: <p>I'm trying to do something very simple in my first Rails app (Rails 3) and I'm not sure what I'm doing wrong, or if there's a better approach. Can't find anything on the web or here that has solved it for me despite much searching.</p>
  
  <p>In the app I have WorkRequests and Articles. When viewing an Article, I want a button to create a WorkRequest and, when the new WorkRequest form appears, have the article filled in. Essentially, I'm trying to pass the Article.id to the new WorkRequest.</p>
  
  <p>Works in link_to just by adding the parameter, but I want it to be a button. While it shows up in the Article form's HTML as a query parameter, it never gets to the WorkRequest.new method. <a href="http://rubyglasses.blogspot.com/2008/04/button-up-your-actions.html" rel="noreferrer">This</a> article from 2010 explains the problem in some detail, but the solution does not work for me (see my comment at the end of the page.)</p>
  
  <p>This seems like it should be a fairly easy and common thing to do (once I figure it out, there are several other places in my own app where I want to do the same thing) but I've been banging my head against this particular wall for a few days now. I am new to Rails--this is my first app--so I hope someone more experienced can help!</p>
  
  <p>Thanks in advance.</p>