0.0
No commit activity in last 3 years
No release in over 3 years
bulk processing routing for Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 5.0.0
 Project Readme

BulkRouting

add bulk_create, bulk_update, bulk_destroy to Rails routes

Build Status

Installation

Add this line to your application's Gemfile:

gem 'bulk_routing'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bulk_routing

Usage

Example

# config/routes.rb

Rails.application.routes.draw do
  resources :articles, bulk: [:create, :update, :destroy]
end

and, show rails routes

                Prefix Verb   URI Pattern                   Controller#Action
  bulk_create_articles POST   /articles/bulk(.:format)      articles#bulk_create
  bulk_update_articles PUT    /articles/bulk(.:format)      articles#bulk_update
 bulk_destroy_articles DELETE /articles/bulk(.:format)      articles#bulk_destroy
              articles GET    /articles(.:format)           articles#index
                       POST   /articles(.:format)           articles#create
           new_article GET    /articles/new(.:format)       articles#new
          edit_article GET    /articles/:id/edit(.:format)  articles#edit
               article GET    /articles/:id(.:format)       articles#show
                       PATCH  /articles/:id(.:format)       articles#update
                       PUT    /articles/:id(.:format)       articles#update
                       DELETE /articles/:id(.:format)       articles#destroy

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/booink/rails-bulk_routing

License

The gem is available as open source under the terms of the MIT License.