before_update :generate_slug, if: :title_changed?
<div class='nested-fields'> <div class='form-group'> <%= form.hidden_field :_destroy %> <%= form.text_field :description, placeholder: 'Description', class: 'form-control' %> <%= form.fields_for :car do |car_field| %> <%= car_field.text_field :engine%> <% end %> <small> <%= link_to "Remove", "#", data: { action: "click->nested-form#remove_association" } %> </small> </div> </div>
rails g benchmark some_benchmark
script/benchmarks/some_benchmark.rb
ruby script/benchmarks/some_benchmark.rb