acceptable-cartoon-88076
06/20/2023, 11:00 PMlemon-wall-20836
06/21/2023, 7:31 AMdata attributes to a_link and a_button
ruby
<%= a_button data: {controller: :foo, action: "click->something#act"} do %>
hehe
<% end %>lemon-wall-20836
06/21/2023, 7:31 AMlemon-wall-20836
06/21/2023, 7:31 AMlemon-wall-20836
06/21/2023, 7:32 AMa_link is obviously a linklemon-wall-20836
06/21/2023, 7:32 AMa_button is used for whne you'd like to submit a form or use method: :delete or data: {confirm: "are you sure"}lemon-wall-20836
06/21/2023, 8:05 AMlemon-wall-20836
06/21/2023, 8:06 AMlemon-wall-20836
06/21/2023, 8:06 AMshow_controls button but you can do the same using the a_button helperlemon-wall-20836
06/21/2023, 8:06 AMlemon-wall-20836
06/21/2023, 8:07 AMlemon-wall-20836
06/21/2023, 8:07 AMacceptable-cartoon-88076
06/21/2023, 3:27 PMacceptable-cartoon-88076
06/21/2023, 3:27 PM