{"id":27968568,"url":"https://github.com/ging/avatars_for_rails","last_synced_at":"2025-05-07T21:04:36.034Z","repository":{"id":62553806,"uuid":"1597827","full_name":"ging/avatars_for_rails","owner":"ging","description":"A Rails gem to manage avatars","archived":false,"fork":false,"pushed_at":"2015-03-04T09:08:58.000Z","size":808,"stargazers_count":46,"open_issues_count":5,"forks_count":27,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-07T21:04:30.242Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ging.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-04-11T07:16:26.000Z","updated_at":"2024-12-13T23:38:12.000Z","dependencies_parsed_at":"2022-11-03T04:45:34.423Z","dependency_job_id":null,"html_url":"https://github.com/ging/avatars_for_rails","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2Favatars_for_rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2Favatars_for_rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2Favatars_for_rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2Favatars_for_rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ging","download_url":"https://codeload.github.com/ging/avatars_for_rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954405,"owners_count":21830902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T21:04:35.416Z","updated_at":"2025-05-07T21:04:36.018Z","avatar_url":"https://github.com/ging.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Avatars For Rails\n\nAvatars For Rails is a integral solution to provide a model with avatar support.\n\nIt includes a database migration and views with jquery.fileupload and jquery.jcrop\n\nIt relies on paperclip and imagemagick\n\n= Installation\n\nAdd to your Gemfile:\n\n  gem 'avatars_for_rails'\n\nand run:\n\n  bundle update\n\nThen, if you have a class named user and you want it to have avatars, run:\n\n  rails generate avatars_for_rails:install user\n\nThis will generate the following:\n\n* A initializer file with configuration for avatars_for_rails.\n* A migration providing the database schema for using avatars_for_rails with the user class.\n\nDo not forget to migrate your database\n\n  rake db:migrate\n  \nIn your model, you must include:\n\n  class User \u003c ActiveRecord::Base\n    acts_as_avatarable\n  end\n\nFor rendering the new avatar form:\n  \u003c%= render partial: 'avatars/form',\n             object: @user,\n             as: :avatarable %\u003e\n  \nYou must include the javascript and css files\n\n  //= require avatars_for_rails\n\n \nIf you want to get an user's avatar you can do: \n  user.logo\n  \nFor rendering an image_tag for an user's avatar:\n  \u003c%= image_tag(user.logo.url(:style) ) %\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fging%2Favatars_for_rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fging%2Favatars_for_rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fging%2Favatars_for_rails/lists"}