Rails AJAX - getting a dropdown selection to populate a table

后端 未结 3 712
醉话见心
醉话见心 2020-12-17 07:38

I\'m trying to get a selection from a dropdown to populate a table in the same page, using AJAX so that changes appear without a page refresh. I\'ve got as far as working ou

3条回答
  •  粉色の甜心
    2020-12-17 07:49

    Create one partial _project.html.erb and render this partial in index page. <%= render @projects %> On change of project just render partial with project object and update page using rjs.

提交回复
热议问题