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?
1 Answer
+ 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