2013-08-15 4 views

답변

1

당신은 사용할 수 있습니다 Streaming

컨트롤러

class PostsController 
    def index 
    # your python script 
    render stream: true 
    end 
end 

application.html.erb

<html> 
    <head><title> <%= provide :title, "Main" %></title></head> 
    <body><%= yield %></body> 
</html> 

posts/index.html.erb

<%= content_for :title, " your python results" %>