Files
grecia/config/initializers
Javi Martín f384451d9f Always generate <button> tags with button_to
In Rails 6.1 and earlier, `button_to` generated a <button> tag when it
received the content as a block, but an <input> tag when receiving
the content as the first parameter.

That's why we were using blocks with `button_to` most of the time; for
starters, <button> tags accept pseudocontent and so are easier to style.

In Rails 7.0, `button_to` always generates a <button> tag [1], so we're
simplifying the code what uses `button_to`, passing the content as a
first parameter instead of passing it as a block.

[1] https://guides.rubyonrails.org/v7.1/configuring.html#config-action-view-button-to-generates-button-tag
2024-04-15 15:39:28 +02:00
..
2021-08-15 01:26:29 +02:00
2023-09-11 23:40:37 +02:00
2020-06-16 13:47:38 +02:00
2019-04-16 17:28:06 +02:00
2023-10-24 19:00:43 +02:00
2023-11-23 18:21:29 +01:00
2024-04-15 15:39:23 +02:00
2017-04-03 12:30:57 +02:00
2015-07-15 13:32:13 +02:00
2023-09-11 23:40:37 +02:00
2019-04-16 17:28:06 +02:00