Rails need a plug n play system for creating streamlined ui components.
Phlex looks fun and fast, so I thought I'd start creating ui components with it.
To contribute to this project, it's recommended to install the gem locally and point to it in your Gemfile:
gem "ruby_ui", path: "../ruby_ui"- Eject the component you want to modify using the generator:
rails generate ruby_ui:component combobox
- Make your desired changes to the ejected component
- Once you're satisfied with the modifications, integrate the component back into the gem in the appropriate location
This workflow allows you to iterate quickly on components while maintaining the gem's structure.
The docs app serves /llms.txt, /llms-full.txt, and /sitemap.xml from public/.
Those files are generated from app/lib/site_files.rb, which is the source of truth for the LLM link map and sitemap URL list.
After changing public routes, controllers, or views, update SiteFiles if the change adds, removes, or renames a public URL. Then refresh the generated files:
bin/rails site_files:generateReview the resulting diff in:
public/llms.txtpublic/llms-full.txtpublic/sitemap.xml
Set SITE_FILES_OUTPUT_DIR=tmp/site_files to generate into a temporary directory instead of overwriting public/.