📜  rails - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:49.504000             🧑  作者: Mango

代码示例1
<% @authors.each do |author| %>
        <%= author.id %>
        <%= author.firstname %>
        <%= link_to "Delete Ingredient", {:controller => :authors, :action => 'destroy', :id => author.id }, :method => :delete %>
    <% end %>