railsinspire
railsinspire copied to clipboard
File Path Feature
Allow users to explore samples by file path (e.g. show all samples with a file in db/migrate
or a file in app/models/concerns
)
- [ ] Add Path (or FilePath) model and associate with SampleFile
- [ ] During SampleFile save, find or create Path and associate with SampleFile (maybe only if it matches common first directories like app, config, db, lib, test, spec, etc.)
- [ ] Add browsable file paths section, showing all Samples with a SampleFile matching the Path (direct link to sample file, show file in sample card), as well as any child Paths beneath
Note
Try to have url match paths starting with something like: /paths/app or /~app or /p/app or /$app or /dir/