Answers for "@ rails"

1

rails

<% @authors.each do |author| %>
        <%= author.id %>
        <%= author.firstname %>
        <%= link_to "Delete Ingredient", {:controller => :authors, :action => 'destroy', :id => author.id }, :method => :delete %>
    <% end %>
Posted by: Guest on August-21-2021
0

rails

= select_tag :client, options_from_collection_for_select(@clients), include_blank: 'Seleccione un cliente', class: 'form-control'
Posted by: Guest on April-28-2022

Browse Popular Code Answers by Language