Render js.erb after page load

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+= “


@html+=""+person.name+" “+person.lname+”"
@html+=""
end %>

$(“div”).append(@html)

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs