R
R
romanwb2014-02-08 10:17:50
Ruby on Rails
romanwb, 2014-02-08 10:17:50

How to recompile a separate template (view) in production mode?

How to recompile a separate template (view) in production mode?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew Emelianenko, 2014-02-09
@YourWest

Do you mean reload?
If you mean rendering, then it's simple:
If you mean updating some data in a block without reloading the page, then this jQuery solution will do (where #refresh is the id of the block in which the data should be updated):

setInterval(function() {
  $("#refresh").load(location.href+" #refresh>*","");
}, 10000);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question