阅读背景:

输入自动完成或Rails中的新功能

来源:互联网 

I have a simple doubt. I'm working on ruby on rails 5, and I have a relation where the parent is 'category' and the child is 'phrase'. My user can create phrases but I don't want a separate form to create categories, which is just an id and a name. I want in the form for phrases an input where the user can type a category and an autocomplete will pop up with the avaliable options, but if he wants a new one, he simply types it and it will create a new one when he saves the form.I have a simple doubt. I'm working on ruby on r




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: