You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hmm. i think i prefer it being something that is not user editable; perhaps filename. what happens when you have two assets with the same filename and/or title?
Right now the filename isn't unique and find_by_asset_file_name will return the first one. While it would be easy enough to validate the uniqueness of the filename, the user can still change it by uploading a new file so it kind of defeats the point.
EDIT: See commits below for example. Right now it is extremely confusing if there are multiple files with the same name.
EDIT 2: Committed the cardinal sin of Git and force overwrote some history. The third commit has everything (first two aren't in the tree anymore).
Every time I insert an asset I use the title. The titles rarely change if ever and the id is completely arbitrary and unhelpful information.
Instead of inserting
it should be
The text was updated successfully, but these errors were encountered: