title: NoMethodError (undefined method `permit!' for " ":String):
body: <p>I'm using android spring and jackson to access a rails api. I have a model called "notes" that belongs to a user. I'm able to retrieve notes successfully but when I try to update one with "PUT" I get this error:</p>
  
  <pre><code>    Started PUT "/users/1/notes/1" for 192.168.56.1 at 2014-12-30 17:18:18 -0800
  Processing by Api::V1::NotesController#update as JSON
    Parameters: {"note"=&gt;"ta ga tane bu ware ", "id"=&gt;"1", "noteText"=&gt;"ta ga tane bu ware ", "user_id"=&gt;"1"}
    User Load (0.1ms)  SELECT  "users".* FROM "users"  WHERE "users"."auth_token" = 'SmaxscWde3m7PKYEivC5'  ORDER BY "users"."id" ASC LIMIT 1
    Note Load (0.1ms)  SELECT  "notes".* FROM "notes"  WHERE "notes"."id" = ? LIMIT 1  [["id", 1]]
  Completed 500 Internal Server Error in 1ms
  
  NoMethodError (undefined method `permit' for "ta ga tane bu ware ":String):
    app/controllers/api/v1/notes_controller.rb:42:in `note_params'
    app/controllers/api/v1/notes_controller.rb:27:in `update'
  </code></pre>
  
  <p>Here's my notes_controller</p>
  
  <pre><code>    class Api::V1::NotesController &lt; ApplicationController
    before_action :require_user
    skip_before_filter  :verify_authenticity_token
    respond_to :json
  
    def index
      @note= Note.all
      render json: current_user.notes
    end
  
    def show
      render json: Note.find(params[:id])
    end
  
    def create
      @note = Note.new note_params.merge(user_id: current_user.id)
      if @note.save
        render json: @note, status: 201, location: [:api, @note]
      else
        render json: {note:{ errors: @note.errors}}.to_json, status: 422
      end
    end
  
    def update
      @note = Note.find(params[:id])
  
      if @note.update_attributes(note_params)
        render json: @note, status: 200, location: [:api, @note]
      else
        render json: {note: {errors: @note.errors}}.to_json, status: 422
      end
    end
  
    def destroy
      @note = Note.find(params[:id])
      @note.destroy
      head 204
    end
  
  
    def note_params
      params.require(:note).permit.(:note, :user_id)
    end
  
  end
  </code></pre>
  
  <p>Is this a problem with my api or the json im sending?</p>
  
  <p>Also, heres my spring "PUT" call</p>
  
  <pre><code>case PUT:
                  headers.add("Authorization", "Token token=" +token);
                  headers.add("Content-Type", "application/json");
  
                  restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());
                  HttpEntity&lt;Note&gt;putEntity = new HttpEntity&lt;Note&gt;(note,headers);
                  response = restTemplate.exchange(config.WEB_SERVICE_URL + "/users/"+userId+"/notes/"+note.getId(), HttpMethod.PUT, putEntity,Note.class, note.getId());
                  Log.d("Response", new Gson().toJson(response));
                  break;
  </code></pre>