Tiago Ameller PRO
Joined 2/28/2018
Tiago Ameller PRO said over 5 years ago on Friend Requests Views, Controllers, and Model Methods :
My vote for an episode about how to add a bootstrap v4 theme

Tiago Ameller PRO said over 5 years ago on Friend Requests Views, Controllers, and Model Methods :
coreui.io looks great. I'm working currently with https://github.com/almasaeed2010/AdminLTE/tree/v3-dev but v3 (Bootstrap 4) is in Alpha for a long time. Any of these B4 themes out there would be a good choose to see how to: * integrate with yarn / webpack in a rails 5 app * customize theme * add some custom page based vanilla js or jQuery * use Stimulus.js Not a ready-to-sale app, just a sample of usage of all of these (and perhaps more) topics

Tiago Ameller PRO said over 4 years ago on SweetAlerts in Rails 6 :
Hi, Dave. In my RoR 5 apps, I use this code (from StackOverflow, I guess :D) ``` $.rails.showConfirmationDialog = function (link) { const message = link.data('confirm') return swal( { title: message, type: 'warning', showCancelButton: true, reverseButtons: true } ).then(function (result) { if (result.value) { return $.rails.confirmed(link) } }) } ``` As you can see `return $.rails.confirmed(link)` makes the job. It works also with TurboLinks. I don't know if this code should work with RoR 6.

Tiago Ameller PRO said over 4 years ago on SweetAlerts in Rails 6 :
Interesting. Despite your approach is weird, is good to have a solution for when I upgrade my app to v6. I need to enhance my js skills before upgrading ;-)