User created custom URL with Rails 4 -


on our website, i'd users able create own vanity/custom url marketing purposes (i.e. www.website.com/cakeparty2015 goes www.website.com/cake/party-supplies/2015-inventory).

this not custom user created page - it's existing page route to. new information custom url.

i don't know if possible, know of way using rails have user can log in , create own vanity url, links, , have automatically re-route?

to little clearer - i'd user fill out form containing:

vanity url -

actual url -

and when submit form, newly created vanity url links actual url. i'd without having put every single custom url in route file.

perhaps looking @ wrong. i'm trying figure out way url shortening possibly?

you want use https://github.com/norman/friendly_id.

you have slug field in model , can let users change it.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -