Giter Site home page Giter Site logo

patshaughnessy / auto_complete Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rails/auto_complete

38.0 38.0 10.0 124 KB

auto_complete plugin refactored to handle complex forms and named scopes

Home Page: http://patshaughnessy.net/repeated_auto_complete

Ruby 100.00%

auto_complete's People

Contributors

cyrilruel avatar dhh avatar patshaughnessy avatar tomharris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

auto_complete's Issues

_delete deprecated

i.e.
from helpers: form_builder.hidden_field(:_delete) + link_to_function(name, "remove_child(this)")
from partial: <%= f.hidden_field :_delete, :class => 'delete' %>

I got the below
DEPRECATION WARNING: _delete is deprecated in nested attributes. Use _destroy instead..

So, I updated to _destroy and all is well.

Rails::Initializer.run error

In Rails 4.0.0

Rails::Initializer.run do |config|

config.gem "repeated_auto_complete"

end

in the config/environment.rb
file results in uninitialized constant error, where local host cannot run.

repeated_auto_complete error
repeated_auto_complete error environment

Issues with formtastic and cucumber in current release

There are two features of the gem that are making it difficult for me to use with formtastic and cucumber.

First issue is that it assumes @object_name is a string and accesses it directly. At least when I use formtastic, @object_name appears to be assigned a Symbol value. Therefore, I think calling @object_name.to_s would be more robust in AutoCompleteFormBuilderHelper.

Second issue is that when I try to test using cucumber, I try to find the field by its label. It appears the gem now uses the object's unique identifier to generate its html id where it used to simply assign an idea as would be done for a normal text field. The latter behavior would allow it to function in tests like a regular text field.

FormBuilderHelper elsif bug

module AutoCompleteFormBuilderHelper/text_field_with_auto_complete
this (elsif !(@object_name.to_s =~ /[]$/))
should be (elsif (@object_name.to_s =~ /[]$/)) .e.q. without negation ('!')

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.