What happens during installation?
Installing Rails UI is a quick process that goes something like this:
- Install the gem
- Run the installer
rails railsui:install
- Boot your server and load the Rails UI landing page and click "Configure app"
- Set a application name, support email and choose a template.
- Optionally install pre-designed pages bundled with your chosen template.
- 🏄♀️ Done!
Dependencies included by default
Gems
We keep the gem list simple because Rails UI focuses less on core application logic.
Icons
For all Rails UI applications we leverage heroicons. These icons cover a lot of basis and come in multiple variants which is useful for different design problems.
It's recommended to stick with one library of icons and one variant for better consistency.
Summarized installation details
Setup and Configuration
- Install and configure Devise for authentication.
- Add first_name, last_name, and admin columns to the User model.
- Include pre-designed authentication and mailer views for Devise to save loads of time.
User model
- Add name_of_person and avatar attributes.
- Leverage avatars for user accounts.
- Use the
name_of_person
gem for flexible user references.
JavaScript
- Replace importmaps with esbuild as the default JavaScript build engine.
ActiveStorage and ActionText
- Add ActiveStorage and ActionText support for rich text editing.
Frontend Tools
- Use Stimulus.js for JavaScript functionality.
- Install custom scaffolds and generators based on installed template.
- Tailwind CSS for styles.
Email Templates
- Include a custom mailer layout and helpers for easy email design and coding.
- Provide pre-built email templates (minimal, promotional, transactional) and Devise email support.