tomichj / autocomplete_rails Goto Github PK
View Code? Open in Web Editor NEWEasily configure Rails controller actions for use with jQuery UI's Autocomplete widget
License: MIT License
Easily configure Rails controller actions for use with jQuery UI's Autocomplete widget
License: MIT License
Do yo plan to support rails 5.2?
After a clean install for Rails 5.1, I cannot use the autocomplete
method within my custom controllers. Neither with bin/rails c
I am able to find any traces of the AutocompleteRails::Controller
:
[1] pry(main)> require 'autocomplete_rails'
LoadError: cannot load such file -- autocomplete_rails
from /var/lib/gems/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
[2] pry(main)> ls AutocompleteRails::Controller
NameError: uninitialized constant AutocompleteRails
However, after changing the gem files for all users to be readable with
# sudo chmod o+r -R -- /var/lib/gems/2.3.0/gems/autocomplete_rails-0.3.0
I can load it successfully within the console:
[1] pry(main)> require 'autocomplete_rails'
=> true
[2] pry(main)> ls AutocompleteRails::Controller
constants: ClassMethods
AutocompleteRails::Controller.methods: included
To be able to use it within my own controllers, I need to require it with an initializer in my config directory, e.g. creating a file config/initializers/autocomplete.rb
:
require 'autocomplete_rails'
Now, I am able to use the autocomplete
method within my controller.
Is the current gem broken or did I miss something in regard to the installation instructions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.