0.01
No commit activity in last 3 years
No release in over 3 years
Add awesomplete assets to your Rails app assets path. Based on http://leaverou.github.io/awesomplete
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 4.0
 Project Readme

Awesomplete For Rails

This is small gem add to your Rails app Awesomplete autocomplete.

This is the working version.

# Developed and tested on:
Ruby 2.1.0
Rails ~> 4.0

Gem Version

Getting started

  1. Add to Gemfile and bundle install.

    gem 'awesomplete'
  2. Add to app/assets/javascripts/application.js:

    //=require awesomplete
  3. Add to app/assets/stylesheets/application.css

    *= require awesomplete

Restart server. That's it.

Usage

Now you can write inputs with awesomplete autocomplete!

Check it out.

This example used slim templating engine.

.ui.fluid.form
  .two.fields
    = form_for(:post, url: posts_path) do |f|
      = f.awesomplete_field(:name, collection: ['five', 'six', 'seven'])
      = submit_tag "Add Post"

    = awesomplete_field(:other, collection: ['red', 'green', 'blue'])
    
    = simple_form_for(:post, url: posts_path, remote: true, method: :post) do |i|
      .field
        = i.awesomplete_field(:title, collection: ['one', 'two', 'three'])
      .field

Configure

You can configurate this autocomplete:

#TODO


TODO

  1. Write update version task.

  2. More options

Kiselenko Roman

This project rocks and uses MIT-LICENSE.