how to redirect to tab of another page in rails?

how to redirect to the tab of another page in rails?
When I click on the button of the first page it redirects me to the default tab(basic) of the page when I click on settings, I want to redirect to the notification tab.

view of 1st page:

.button
    %a{:href => edit_student_path(current_student)}
        settings 

view of tab page:

%ul.nav.nav-pills
    %li.active
        %a{"data-toggle" => "tab", :href => "#student-basic", :role => "tab"} basic-info
    %li
        %a{"data-toggle" => "tab", :href => "#student-notification", :role => "tab"} notification


.tab-content
    #student-basic.tab-pane.active
        = render 'basic_info_form'
    #student-notifications.tab-pane
        = render 'notifications_form'

91 thoughts on “how to redirect to tab of another page in rails?”

Leave a Comment