Almost half of the `delete_button` instances use `request.path` for `url` or `redirect`. By adding default values to them, we can remove bunch of lines. |
||
---|---|---|
.. | ||
create.erb | ||
index.erb | ||
show.erb |
Almost half of the `delete_button` instances use `request.path` for `url` or `redirect`. By adding default values to them, we can remove bunch of lines. |
||
---|---|---|
.. | ||
create.erb | ||
index.erb | ||
show.erb |