Skip to content

Instantly share code, notes, and snippets.

@artem-d
artem-d / activeadmin_quick_edit_add.rb
Last active April 13, 2021 15:55
ActiveAdmin quick add and quick edit
# http://helabs.com.br/blog/2014/05/28/quick-add-and-quick-edit-on-active-admin/
# room.rb
action_item only: :index do
link_to 'Quick add', admin_room_quick_add_path, class: 'fancybox', data: { 'fancybox-type' => 'ajax' }
end
controller do
def quick_add
@room = Room.new

Keybase proof

I hereby claim:

To claim this, I am signing this object:

package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
"github.com/nu7hatch/gouuid"