Coder Social home page Coder Social logo

auto_select2's People

Contributors

litovvladimir avatar loriowar avatar mosk1995 avatar shipiev avatar tab10id avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

auto_select2's Issues

Warnings from gem builded

Fix warnings from gem build action:

WARNING:  open-ended dependency on railties (>= 3.1) is not recommended
  if railties is semantically versioned, use:
    add_runtime_dependency 'railties', '~> 3.1'
WARNING:  open-ended dependency on select2-rails (>= 0) is not recommended
  if select2-rails is semantically versioned, use:
    add_runtime_dependency 'select2-rails', '~> 0'
WARNING:  open-ended dependency on coffee-rails (>= 0) is not recommended
  if coffee-rails is semantically versioned, use:
    add_runtime_dependency 'coffee-rails', '~> 0'
WARNING:  open-ended dependency on rake (>= 0, development) is not recommended
  if rake is semantically versioned, use:
    add_development_dependency 'rake', '~> 0'
WARNING:  pessimistic dependency on rails (~> 3.2.12, development) may be overly strict
  if rails is semantically versioned, use:
    add_development_dependency 'rails', '~> 3.2', '>= 3.2.12'
WARNING:  See http://guides.rubygems.org/specification-reference/ for help

Can I use auto_select2 for CREATING dependent values?

I read about your gem at habrahabr.ru and thank you for your work. In one of the examples you've shown gem usage to build dependent selection (country, city example). What if I want to create city that is not present in given selection? Normally I would add new item using createSearchChoice function, is this feature supported in your gem yet?

Fix doc

Please fix "gem 'auto-select2'" to "gem 'auto_select2'" in Second section README.md

Instantiation of search adapter instead of usage self-methods of adapter

When we use options for some filtration purposes we have to transfer them through all self-methods.
Instead of this we can use something like this in adapters:

class MySearchAdapter
  def initialize(options)
    @options = options
  end

  def search(term, page)
    # some logic with @options
  end

  private

  # ...
end

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.