title: create tokens in jquery token input
body: <p>Presently my jquery token input is working perfectly fine.</p>
  
  <p>Am not able to create token, which is not in the list</p>
  
  <p>I have seen <a href="https://github.com/loopj/jquery-tokeninput/pull/219" rel="noreferrer">here</a>, that this functionality is implemented. But there is no documentation on how we i can use this.</p>
  
  <p>Can any one help me with documentation or demo </p>
  
  <p>js_js.js</p>
  
  <pre><code>    $(document).ready(function () {
          $("#job_skills").tokenInput("/jobs/search_job_skills", {
              theme: "facebook",
              preventDuplicates: true,
              hintText: 'Add skills need for job',
              searchingText: 'searching skills...',
              allowCreation: true,
              creationText: 'Add new element'
          });
  
      });
  </code></pre>
  
  <p>cons_controller.rb</p>
  
  <pre><code>  def search_job_skills
      search_for_json(Skill)
    end
  
    def search_for_json(model_search)
      @hash = []
  
      @search_res = model_search.where(['name LIKE ?', "#{params[:term]}%"])
  
      @search_res.each do |tag|
        @hash &lt;&lt; { id: tag.id,
                   name: tag.name}
      end
      render json: @hash
    end
  </code></pre>