I have searched high and low for an answer and have found similar examples of the problem but the answers do not apply to my scenario. The reality is I am new to this and th
$('html,body').animate({ scrollTop: $('#answer-<%= @answer.id %>').offset().top - 50 }, 700);