ruby on rails - Tagging like github or gitlab -
i want introduce github tagging in app, repo has predefined tags/labels , tags can used on issues/prs. project can have_many issues
. tags related both repos , issues, in issues has_many tags
, repos has_many tags
. can't seem figure out how implement it. using acts-as-taggable-on. so, initialize tag_list of repo when first created with:
repo.tag_list = 'bug, feature, improvement, inspiration, discussion, help'
i allowing user add tags @ same time issue created (ie on new form of issues). how validate in issue model tags being added in tag_list of repo on issue being created?
Comments
Post a Comment