Bootstrap Typeahead only displaying first letter
I'm having a tough time getting Twitter Bootstrap's Typeahead to work. Typeahead is only matching the first letter of an input. My results in the typeahead box looks something like n n n N N n. My code is <%= text_field_tag :search, params[:search], "data-provide" => "typeahead", "data-source" => '["USA", "Canada","Mexico"]' %> Can anyone help? Check the combination of quotes that's output in your html for the data-source attribute. I was having the same problem with the following snippet of code. <input type="text" name="test" id="test" class="span2" data-provide="typeahead" data-items="4"