{"id":15543796,"url":"https://github.com/amiel/delete_action","last_synced_at":"2025-04-05T04:25:33.851Z","repository":{"id":1031259,"uuid":"859522","full_name":"amiel/delete_action","owner":"amiel","description":"This rails plugin adds a delete action to the default map.resources routing set. ","archived":false,"fork":false,"pushed_at":"2012-06-19T23:27:22.000Z","size":92,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-03T12:33:13.557Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amiel.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-24T16:52:40.000Z","updated_at":"2019-08-13T14:36:05.000Z","dependencies_parsed_at":"2022-08-16T11:50:33.896Z","dependency_job_id":null,"html_url":"https://github.com/amiel/delete_action","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2Fdelete_action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2Fdelete_action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2Fdelete_action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2Fdelete_action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amiel","download_url":"https://codeload.github.com/amiel/delete_action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247288864,"owners_count":20914445,"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-10-02T12:28:25.067Z","updated_at":"2025-04-05T04:25:33.827Z","avatar_url":"https://github.com/amiel.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"== Delete Action\n\nThis rails plugin adds an extra action to the default `map.resources` routing set.\nIt is really just a shorthand for\n\n  map.resources :widgets, :member =\u003e { :delete =\u003e :get }\n\nThe idea is to have an action for a confirm delete form, which we tend to render in a modal.\nThis offers a similar user experience to \u003ccode\u003elink_to \"widget\", widget_url(widget), :method =\u003e :delete, :confirm =\u003e 'string'\u003c/code\u003e but allows for an unobtrusive case.\n\n== Rails 3\n\nSee my blog post here: http://blog.amielmartin.com/post/1216720481/delete-action-in-rails-3\n\nThe next time I end up using this pattern I will probably come back and update this plugin...\n\n== Example\n\n  map.resources :widgets\n  \nWill now map the following actions:\n\n  # GET widgets_url                 =\u003e index\n  # GET new_widget_url              =\u003e new\n  # POST widgets_url                =\u003e create\n  # GET widget_url(:id =\u003e 1)        =\u003e show\n  # GET edit_widget_url(:id =\u003e 1)   =\u003e edit\n  # PUT widget_url(:id =\u003e 1)        =\u003e update\n  # GET delete_widget_url(:id =\u003e 1) =\u003e delete\n  # DELETE widget_url(:id =\u003e 1)     =\u003e destroy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiel%2Fdelete_action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famiel%2Fdelete_action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiel%2Fdelete_action/lists"}