Skip to content

Instantly share code, notes, and snippets.

@grin
grin / active_admin.js
Created Apr 14, 2016 — forked from ascot21/active_admin.js
Inline Editing in ActiveAdmin with Best In Place Gem
View active_admin.js
//= require jquery
//= require best_in_place
//= require jquery.purr
//= require active_admin/base
$(document).ready(function() {
$(".best_in_place").best_in_place()
$('.best_in_place').bind("ajax:success", function () {$(this).closest('tr').effect('highlight'); });
$(document).on('best_in_place:error', function(event, request, error) {