railsinspire icon indicating copy to clipboard operation
railsinspire copied to clipboard

Nicer URLs for samples and sample files

Open jeremysmithco opened this issue 2 years ago • 0 comments

I don't love the current URLs for samples and sample files:

/samples/4
/samples/4/files/11

I wonder if I should generate some longer hash ID instead of using the primary key, and maybe change the route names. Maybe something like this?

/s/oaf987dsf6d8f76dsf
/s/oaf987dsf6d8f76dsf/f/8dsf876sd9f8723

Maybe files shouldn't even be scoped through the sample.

/f/8dsf876sd9f8723

jeremysmithco avatar Sep 09 '22 01:09 jeremysmithco