* Listings creation and update API - new listings controller - refactored code to share core functionnality between api and web controllers - code in common in classified listing concerns - added tests for index/create/update - json output as views - updated a factory * Listings creation and update API: code update - refactored json calls - added test cases - added pagination for list of listings - refactored jbuilder files - typos * Listings creation and update API: code update - tags and tag_list in controller - changed view to display both - refactored and added test * Listings creation and update API: code update - small change to resolve conflit * Listings creation and update API: code update - added test case - deleted unneeded test case
11 lines
379 B
Ruby
11 lines
379 B
Ruby
user_profile_image = ProfileImage.new(user)
|
|
|
|
json.user do
|
|
json.name user.name
|
|
json.username user.username
|
|
json.twitter_username user.twitter_username
|
|
json.github_username user.github_username
|
|
json.website_url user.processed_website_url
|
|
json.profile_image user_profile_image.get(640)
|
|
json.profile_image_90 user_profile_image.get(90)
|
|
end
|