title: Automatically fill in form fields in Rails?
body: <p>Lets say you had a simple form to create a new article object in your application.</p>
  
  <pre><code>&lt;% form_for @article do |f| %&gt;
  &lt;p&gt;
    name:&lt;br /&gt;
    &lt;%= f.text_field :name  %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    link:&lt;br /&gt;
    &lt;%= f.text_field :link %&gt;
  &lt;/p&gt;
  
  &lt;p&gt;
    &lt;%= submit_tag %&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I'm using the RSS feed parser Feedtools to get the article names but I can't seem to automatically fill in the form fields from data that is accessible elsewhere. Say the name of the article is accessible through <code>params[:name]</code>. How could I get the name of the article from <code>params[:name]</code> (or <code>params[:link]</code> for that matter) into the form field without the user having to type it in? I don't want to automatically create an article object either because the user may want to modify the name slightly.</p>