Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make select2 add new items to database #66

Open
nightsh opened this issue Apr 6, 2015 · 0 comments
Open

Make select2 add new items to database #66

nightsh opened this issue Apr 6, 2015 · 0 comments

Comments

@nightsh
Copy link
Member

nightsh commented Apr 6, 2015

When a query returns no results from the API call:

  • show instead a "result" as an add it! link
  • the link will make a POST to the API create route
  • the API call will return an id for the newly introduced item
  • the id is pushed into the array of selected items
@nightsh nightsh added this to the 0.1.0 milestone Apr 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant