I have a problem with Ruby on Rails.
I have a "Host Model" with a method, which takes longer to run.
class Host < ActiveRecord::Base
def take-a-while
#do some stuff
end
end
Now I try to access a page in which this method is executed on all hosts and is automatically displayed each time you perform in a new table row with the result. My problem is that the HTML document is first completely rendered and the table is displayed only after the complete loading (several minutes).
Is there a way to solve this problem?
Thanks in advance Greetings!