我正在尝试改进我正在开发的 Rails 应用程序。到目前为止,我的页面显示了我的数据库中的表。但是,我想使用 table-edits jQuery 插件来使这些在使用网站时实际可编辑。我只是很困惑如何完成这项工作。我对 Web 开发很陌生,所以我很难自己弄清楚。
http://nathancahill.github.io/table-edits/
到目前为止,我在 app/assets/javascripts 中有 table-edits.js 文件,我在文件中添加了该//= require table-edits
语句application.js
。我被困在这里,我不确定接下来要做什么。
我的index.html.erb
看起来像这样:
<div id="page-wrapper">
<div id="main-wrapper">
<div id="main-content">
<div class="title">
<h3>Hello</h3>
</div>
<%= render partial: 'my_table', locals: {table:@table} %>
</div>
此网页显示表格。我希望能够编辑这些值。蒂亚!
它似乎与 Datatables.js 不兼容。对于任何想知道的人来说,可编辑表的作品!
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句