Is there a way to redirect to a specific tab on another page using Rails? I am facing an issue where clicking on a button on the first page redirects me to the default tab (basic) of the destination page. However, I would like it to redirect to the notification tab instead.
Here is the view of the first page:
.button
%a{:href => edit_student_path(current_student)}
settings
And here is the view of the 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'