Last Updated: February 25, 2016
·
1.016K
· galulex

Rails nice delete confiramtions in 4 rows

1 Gemfilte

gem 'lazybox'

2 application.css

*= require lazybox

3 application.js

//= require lazybox

4 application.js

$.rails.allowAction = $.lazybox.confirm;

And we are Done

LazyBox

add classes to links to apply your style:

$.lazybox.settings = {cancelClass: "button gray", submitClass: 'button gray', overlay: false}

LazyBox

Lazybox Gem Documentation