Giter Site home page Giter Site logo

klaseskilson / administrate-field-belongs_to_search Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fishbrain/administrate-field-belongs_to_search

0.0 1.0 0.0 76 KB

Plugin that adds search capabilities to belongs_to associations for Administrate

License: MIT License

JavaScript 7.63% Ruby 74.76% HTML 17.61%

administrate-field-belongs_to_search's Introduction

Administrate::Field::BelongsToSearch

Build Status Gem Version Coverage Status

A plugin to search through belongs_to associations in thoughtbot's Administrate Rails engine.

Usage

Add it to your Gemfile:

gem 'administrate-field-belongs_to_search'

Run bundler to install:

bundle install

Add it to your Administrate dashboard, for instance:

class PostDashboard < Administrate::BaseDashboard
  ATTRIBUTE_TYPES = {
    author: Field::BelongsToSearch.with_options(class_name: 'User')
  }
# ...

With this, you should be good to go!

Develop and Contribute

Fork and clone the repo. Install dependencies and run test using:

bundle install
bundle exec rake

Then, implement your feature/fix, write a good commit message and submit a pull request to this repository. If you only have some feedback or are unsure about how to do something, you're welcome to submit an issue.

This is meant to be an welcoming and friendly place for collaboration. Therefore, all contributors are expected to adhere to the Contributor Covenant Code of Conduct.

License

This plugin is Copyright © 2017 Fishbrain AB. It is licensed under the MIT license. See LICENSE for details.

Screenshot

Screenshot

========

Fishbrain AB

This plugin is maintained by Fishbrain AB.

At Fishbrain, we're passionate about the outdoors and conservation. Together, we work to bring you the best app for fishing, hands down.

If you love working with amazing and talented people in tight-knit teams, join us!

administrate-field-belongs_to_search's People

Contributors

dalen avatar dan-ding avatar dependabot-preview[bot] avatar klaseskilson avatar mrjaco12 avatar phishalot avatar redrick avatar tim-heighes-fishbrain avatar

Watchers

 avatar

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.