{"id":19319741,"url":"https://github.com/hyperoslo/refile-input","last_synced_at":"2025-04-22T17:32:13.424Z","repository":{"id":26734199,"uuid":"30191798","full_name":"hyperoslo/refile-input","owner":"hyperoslo","description":"Refile support for Formtastic","archived":false,"fork":false,"pushed_at":"2016-03-14T20:27:26.000Z","size":7,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-08-10T11:08:20.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/hyperoslo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-02T14:52:22.000Z","updated_at":"2024-02-15T15:45:49.000Z","dependencies_parsed_at":"2022-06-27T14:01:21.379Z","dependency_job_id":null,"html_url":"https://github.com/hyperoslo/refile-input","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Frefile-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Frefile-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Frefile-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2Frefile-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperoslo","download_url":"https://codeload.github.com/hyperoslo/refile-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223902215,"owners_count":17222331,"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":"2024-11-10T01:25:06.357Z","updated_at":"2024-11-10T01:25:06.986Z","avatar_url":"https://github.com/hyperoslo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Refile Input\n\nRefile Input gem adds custom input type to formtastic to use refile file uploader. Well, name is self-explanatory and gem is super-simple. It's built upon refile's input helper.\n\n# Installation\n\nAdd the gem:\n\n``` ruby\ngem \"refile-input\", require: [\"inputs/refile_input\"]\n```\n\nUse the gem:\n\n``` ruby\nform do |f|\n  f.input :image, as: :refile\nend\n```\n\n# Available options\n\nGem brings support of the following options:\n\n* `direct` determines whether file should be uploaded asynchronously or not. Uploading host might be changed with `host` option. More about it read in refile [documentation](https://github.com/elabs/refile/). Note that refile's js should be included on the page.\n* `image_preview` is an option to generate image preview. As arguments it accepts list of refile `attachment_url` options. Read more [here](https://github.com/elabs/refile/#4-rails-helpers).\n* all formtastic's options such as `hint`, `label`, etc.\n\n# License\n\n[MIT](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2Frefile-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperoslo%2Frefile-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2Frefile-input/lists"}