Import books
How this page is built
the gem renders it — this is all you write
A custom collection action — it appears as a button in the table header, linking to the conventional import_books_path. This page is entirely yours; the gem only renders the button that links here.
app/models/book.rb
action :import, on: :collection, icon: 'upload' # collection action → import_books_path
Read more: Actions