Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple_auto_complete

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple_auto_complete

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

SimpleAutoComplete

The most simple gem for text field auto complete. You only have to specify what collection you want to use for autocompletion.

Installation

Add this line to your application's Gemfile:

gem 'simple_auto_complete'

And then execute:

$ bundle install

Add this line to application.js:

//= require simple_auto_complete


Add this line to application.css:

*= require simple_auto_complete

Usage

Example 1:

  #in controller:
  @days =  ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Satturday", "Sunday"]
  
  #in view:
  <%= text_field_tag_with_auto_complete :day, "", @days, id: "day_name" %>
  

Parameters are the same like text_field_tag has, but collection parameter (@days) that is put on third position

Example 2:

 <%= f.text_field_with_auto_complete :country, @countries, {} %>

FAQs

Package last updated on 04 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc