mardi 20 septembre 2022

Rails partial path when bootstrap tab active

I am building a profile page that contains a navigation tab with 3 tabs(account, settings, and language&display). Each tab renders a partial. What I want to achieve is that for each partial rendered the URL will change as well.

For example when Settings tab is active I want to be on settings_path, and the url: localhost:3000/settings.

my page here

I did not find anything about partials and paths, do you have any idea about this?

Aucun commentaire:

Enregistrer un commentaire