title: Ruby on Rails: number_field/text_field not saving values
body: <p>I'm having a small issue with saving form values. I made a form for updating some database values, and I've ran into a peculiar problem. </p>
  
  <p>I created 3 variables for several items, here are the first 3 from the form.</p>
  
  <p>follow_up_logs/edit.html.erb</p>
  
  <pre><code>&lt;div id="followuplog_attribute_update"&gt;
      &lt;p&gt;
          Baseline Target: 
          &lt;%= f.number_field :baseline_target %&gt;
      &lt;/p&gt;
      &lt;p&gt;
          Baseline Completed:
          &lt;%= f.number_field :baseline_completed %&gt;
      &lt;/p&gt;
      &lt;p&gt;
          Baseline Reasons:
          &lt;%= f.text_field :baseline_completed %&gt;
      &lt;/p&gt;            
  &lt;/div&gt;
  </code></pre>
  
  <p>And, to show you the pattern, here are the second three:</p>
  
  <pre><code>&lt;div id="followuplog_attribute_update"&gt;
      &lt;p&gt;
          3 Week Target: 
          &lt;%= f.number_field :week3_target %&gt;
      &lt;/p&gt;
      &lt;p&gt;
          3 Week Completed:
          &lt;%= f.number_field :week3_completed %&gt;
      &lt;/p&gt;
      &lt;p&gt;
          3 Week Reasons:
          &lt;%= f.text_field :week3_completed %&gt;
      &lt;/p&gt;            
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is how I created them:</p>
  
  <p>add_column :follow_up_logs, :baseline_target, :integer
    add_column :follow_up_logs, :baseline_completed, :integer
    add_column :follow_up_logs, :baseline_reasons, :string</p>
  
  <p>add_column :follow_up_logs, :week3_target, :integer
    add_column :follow_up_logs, :week3_completed, :integer
    add_column :follow_up_logs, :week3_reasons, :string</p>
  
  <p><strong>The problem is</strong>, only the target variable saves. All the rest don't save to the database. So when I submit the form, for some odd reason, :baseline_target and :week3_target both save to the database, however nothing else does. (Well, actually the completed variables save as 0 and the reasons variables are left as nil)</p>
  
  <p>Here are my controller actions:</p>
  
  <p>follow_up_logs_controller.rb</p>
  
  <pre><code>  def new
      @follow_up_log = FollowUpLog.new
    end
  
    def create
      @follow_up_log = FollowUpLog.new(params[:follow_up_log])
  
      if @follow_up_log.save
          redirect_to @follow_up_log
      else
          render 'new'
      end
    end
  
    def update
      @follow_up_log = FollowUpLog.find(params[:id])
      if @follow_up_log.update_attributes(params[:follow_up_log])
        flash[:success] = "Log Updated"
        redirect_to @follow_up_log
      else
        render 'edit'
      end
    end
  
    def edit
      @follow_up_log = FollowUpLog.find(params[:id])
    end
  </code></pre>
  
  <p>I haven't been able to figure out what's going on, any help would be greatly appreciated. I feel like it must be something small I keep missing =(</p>
  
  <p>edit. spelling</p>