Encountering an issue with Ruby on Rails.
I have a "Host Model" that contains a method which has a longer runtime.
class Host < ActiveRecord::Base
def take-a-while
# implement logic here
end
Attempting to access a page where this method runs on all hosts and is automatically displayed in a new table row with results upon each execution. Unfortunately, the HTML document renders completely first, resulting in a delay before the table displays (several minutes).
Any solutions to resolve this loading problem?
Thank you for your help!