FellowPlus表构建器
gem 'fp_table', git: 'https://github.com/FellowPlusDev/fp_table_rails.git'
<%= table_for Article, @articles do |t| %>
<%= t.column :title %>
<%= t.column 'actions' do |article| %>
<%= link_to 'Show', article %>
<%= link_to 'Edit', edit_article_path(article) %>
<%= link_to 'Destroy', article, method: :delete, remote: true %>
<% end %>
<% end %>
评论0
最新资源