Coder Social home page Coder Social logo

awesomplete's Introduction

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.

awesomplete's People

Contributors

asecondwill avatar roman-kiselenko avatar

Watchers

 avatar  avatar

Forkers

vandapharma

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.