QUICK QUESTIONS.
I'm using Rails to develop a single page webapp with a sidebar for scrolling. I'd like for my sidebar to change active states depending on the page section.
I'm used to using the "current_page?" method to set navigation links active, but am unaware if there is a method like this for page sections. I know jQuery can get this working, but I'd like to use as little lines of code as possible.
Is there another method out there like "current_page", but for sections on a page?
Is there maybe a way to still use "current_page?", and apply that to page sections?
Am I forced to use jQuery?
Have never used Rails for a single page webapp, so am feeling lost on how I could use the controller here. I know I probably should've used a framework like Angular, but I did not originally plan on developing this to be a single page webapp.
Any help or advice would be GREATLY appreciated!