Install Phlex Rails integration

Install the phlex-rails gem:
$ gem install phlex-rails
$ rails g phlex:install

This changes a few things in your Rails project:

  • Adds view paths to ./config/application.rb.
  • Creates view files in ./app/views and ./app/views/components.

Reboot server to pick-up these changes!

Make sure you checkout the website, Phlex.fun for more examples and docs.

14 / 39