title: RUBY ON RAILS-Get user input to insert into database,process it, insert new variable into database
body: <p>User is required to input a name (that will insert into database) and I need the user input name to use in another function to process then I need the newly processed input to insert into database.</p>
  
  <p>So far, i manage to do is: </p>
  
  <pre><code> A name inserted into database
   -&gt; I saved it (name = personname, nameJob = nil)
   -&gt; I update_attribute('nameJob', nameJob_func(params[:name]))
  </code></pre>
  
  <p>Is there a better way where I can insert both entries together into the database after I process the nameJob_func()?</p>