I currently have my URL set up where it will be like this:
localhost:3000/user/3
using this in my routes file:
resources :users, path: '/user' do
Technically I can change /user
to anything if I want to change it, for example: /profile
will then turn into this:
localhost:3000/profile/3
But what if I have certain options for users at signup to choose from, if they're using my application as a:
Designer
, Developer
, Assistant
So when user signs up, and chooses from among those three, it'll save into my database under user_as
column, and it'll be spelled out in the cells.
So how does do I change /user
based on the user_as
? I'd like to have either /designer
, /developer
, or /assistant