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.
Alessio V. (Guest)
on 2017-02-06 22: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.