title: Unable to save form
body: <p>I'm trying to save a form, and I am so lost on why it refuses to save. Does anybod have a clue what might be wrong?</p>
  
  <p>Here's the form code:</p>
  
  <pre><code>  &lt;%= form_for @service, url: services_path do |f| %&gt; 
    &lt;% @profiles.each do |profile| %&gt;
        &lt;%= f.text_field :service_id,  value: "#{profile.service_id}" %&gt;
  
        &lt;div class="media"&gt;
          &lt;a class="media-left" href="#"&gt;
            &lt;%= image_tag profile.avatar, height: '45', width: '45', class: 'img-circle' %&gt;
          &lt;/a&gt;
          &lt;div class="media-body"&gt;
            &lt;h4 class="media-heading"&gt;&lt;%= profile.service_username %&gt;&lt;/h4&gt;
              &lt;%= profile.service %&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
      &lt;% end %&gt;
    &lt;%= f.submit %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>@service = current_user.services.new
  </code></pre>
  
  <p>the association between them are:</p>
  
  <pre><code>user has_many :services
  service belongs_to :user 
  </code></pre>
  
  <p>and the services controller create looks like this:</p>
  
  <pre><code>def create
  @service = current_user.services.new(service_params)
  if @service.save
    flash[:notice] = "success"
    redirect_to root_url
  else
    flash[:alert] = "Unable to add"
    redirect_to :back
  end
  end
  </code></pre>
  
  <p>my logs say:</p>
  
  <pre><code>Started POST "/services" for 127.0.0.1 at 2015-01-17 18:09:44 -0800
  Processing by ServicesController#create as HTML
  Parameters: {"utf8"=&gt;"✓",  "authenticity_token"=&gt;"lsW5aVuVUCQrHsaCo+uxbR11sF3mph3lTnM8O/Dtxn8=", "service"=&gt; {"service_id"=&gt;"2967861508"}, "commit"=&gt;"Create Service"}
  User Load (0.8ms)  SELECT  "users".* FROM "users"  WHERE "users"."id" = 30       ORDER BY "users"."id" ASC LIMIT 1
  (0.2ms)  BEGIN
  (0.2ms)  ROLLBACK
  Redirected to http://localhost:3000/schedules
  Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
  </code></pre>