7 lines
247 B
Plaintext
7 lines
247 B
Plaintext
|
[
|
||
|
<% @users && @users.each_with_index do |person,index| %>
|
||
|
{"id": <%=index%>, "name": "<%=person.show_name%>", "login": "<%=person.login%>", "searchKey": "<%=person.get_at_show_name%>"}
|
||
|
<%= index != @users.size-1 ? ',' : '' %>
|
||
|
<% end %>
|
||
|
]
|