title: Variable symbol in Params object in rails
body: <p>I have the following code:</p>
  
  <pre><code>@profile.update_attributes(params[:xxxx_profile])
  </code></pre>
  
  <p>where xxxx stands for either male or female.  Basically the form submit passes either a set of <code>female_profile[foo]</code> or a <code>male_profile[foo]</code> and i want to change it accordingly.  Assuming I have a string that can be inserted in lieu of xxxx, how do I dynamically create this symbol?</p>
  
  <p>Thanks.</p>