A
A
Alex2015-08-30 00:07:12
JavaScript
Alex, 2015-08-30 00:07:12

Ruby on Rails | JavaScript - Why doesn't JS work without reloading the page?

There is an element, after clicking on which the block expands!
$(document).on('page:change', function () {....}
But on HEROKU, the script works correctly only after a complete reload of the page!
And everything is fine on the local server!
What is the reason I can not understand!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2015-08-30
@sashasoft

rake assets:precompile helped solve everything

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question