Rack RESTful Submit =================== Implements support of RESTful resources with Rails MVC when Javascript is off and bulk operations are required with multiple submit buttons. Rack Builder ------------ require 'rack-restful_submit' use Rack::RestfulSubmit Rails integration ----------------- ### Install GEM without Bundler Insert into config/environment.rb: config.gem "rack-restful_submit" Run: rake gems:install ### Install GEM with Bundler Insert into Gemfile: gem "rack-restful_submit" Run: bundle install ### Integration We need to swap our RestfulSubmit middleware with MethodOverride which we don't need anymore. Insert into config/environment.rb: config.middleware.swap Rack::MethodOverride, 'Rack::RestfulSubmit' Usage ----- In the example below you can see that using submit input with `__rewrite` name and `multi_destroy` mapping allows us to convert normal POST request into RESTful one. Don't forget to also insert 2 hidden fields URL and METHOD as shown below. __NOTE:__ I'm aware of that adding collection to RESTfull controller ins't very RESTfull but this is only example of this GEM. If you want fully RESTfull create new controller for the bulk operations. Example of industries/index.html.erb