Forum: Ruby on Rails Render js.erb after page load

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F1f7d9967cb63b425f1654ca63a625f9?d=identicon&s=25 Alessio V. (alessio_v)
on 2017-02-06 21:53
Hi, I have a remote link that I use to recover a js.erb file that report
the list of people. In this js.erb file I have

<% @html=""
@people.each do |person|
   @html+= "<tr>"
   @html+="<td>"" "+person.lname+"</td>"
end %>


There is the possibility to call the js.erb file when the page load? I
can make an ajax call but there is the possibility to use a function of
rails jquery uijs where I pass my link?
This topic is locked and can not be replied to.