0

How to create a homepage that loads info from nav bar tabs rather than using routes.

How to create a homepage that loads info from nav bar tabs rather than using routes. I am using Ruby on Rails in Vagrant. I want to be able to render information when user clicks certain tabs rather than making a bunch of pages and routes to load simple paragraphs of information. How can I do this?

9th Mar 2020, 11:12 PM
Ran9
Ran9 - avatar
1 Antwort
+ 1
i've never worked with ruby, but technically this should be able with plain html. just create some div's and load the content in there. And when a tab is clicked (maybe using onclick or addEventListener) you could show the corresponding div
10th Mar 2020, 5:10 AM
Jakob Meier
Jakob Meier - avatar