Use Bower with Rails-assets for foundation 5 css and js.
Install Twitter Tyypeahead.js