 I'm not sure if it's related to Rails, JavaScript or more just to some basic old HTML code.
I'm not sure if it's related to Rails, JavaScript or more just to some basic old HTML code.
I have a simple web app I've built with Ruby on Rails with a navbar and a sidebar at:
layout > application.html.erb
And the actual page (<%= yield %>) in the middle (classic bootstrap style I copied from bootstrap main example).
How can I add a simple Print button that lets the user print just the the actual page that the button is located at (without the navbar and sidebar)?
 
    