Last active
December 17, 2015 12:49
-
-
Save leenasn/5612609 to your computer and use it in GitHub Desktop.
Revisions
-
leenasn renamed this gist
May 20, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
leenasn created this gist
May 20, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ [<% @users.each_with_index do |user, index| %>{ "id" : "<%= user.id %>" , "name" : "<%= user.full_name.split.first %>", "profile_image_url" : "<%= user.profile_image_thumbnail.remote_url %>" }<%= ((index + 1) == @users.count)? "" : "," %><% end %>]