Installation

LesliContacts provides an account-scoped contact directory. It requires Lesli ~> 5.0 and stores contacts in the host database.

Install and Mount

bundle add lesli_contacts

The standard router mounts the engine at /contacts:

Rails.application.routes.draw do
  Lesli::Router.mount(self)
end

For a manual mount:

Rails.application.routes.draw do
  mount LesliContacts::Engine => "/contacts"
end

Prepare the database and initialize existing accounts:

bin/rails lesli:db:prepare

Verify the Installation

bin/rails routes -g contacts
bin/rails server

Visit http://127.0.0.1:3000/contacts. The engine exposes contact listing, creation, and detail routes plus its account resource.

See Translations and Database before extending the engine.

 Edit this page

Last Update: 2026/10/06