Friendly urls for tracks

Don't use tracks ids in urls
Add short_name to tracks and use that in urls as the identifier
This commit is contained in:
AEtherC0r3 2017-06-29 23:39:56 +03:00 committed by Antonios Eleftheriadis
parent 882a1d20c9
commit 95fbd10153
9 changed files with 61 additions and 8 deletions

View file

@ -3,6 +3,7 @@ FactoryGirl.define do
name { Faker::Commerce.department(2, true) }
description { Faker::Lorem.sentence }
color { Faker::Color.hex_color }
short_name { SecureRandom.urlsafe_base64(5) }
program
end
end