sukima / redmine_equipment_status_viewer

Redmine plugin: Allows admins to make a list of equipment and track if they are inservice or not
http://sukima.github.com/redmine_equipment_status_viewer/
GNU General Public License v3.0
33 stars 23 forks source link

You should not use the `match` method in your router without specifying an HTTP method. #72

Open mbrownnycnyc opened 8 years ago

mbrownnycnyc commented 8 years ago

I am receiving the following when attempting to start ruby:

An error occurred while loading the routes definition of redmine_equipment_status_viewer plugin (C:/Bitnami/redmine-3.1.0-0/apps/redmine/htdocs/plugins/redmine_equipment_status_viewer/config/routes.rb): You should not use the `match` method in your router without specifying an HTTP method.
If you want to expose your action to both GET and POST, add `via: [:get, :post]` option.
If you want to expose your action to GET, use `get` in the router:
  Instead of: match "controller#action"
  Do: get "controller#action".
sukima commented 8 years ago

Pull Request?

mbrownnycnyc commented 8 years ago

Apologies, I am using Redmine 3.0.1. I am not a ruby dev, but would like to know if you plan to support 3.0.1 in the future? There are currently no inventory plugins that function with 3.0.1.

This one error was fixable...

 match "ci/:equipment_asset_id", :to => "asset_check_ins#new", :via => [:get], :as => "equipment_asset_check_in"

Then I also had to make a few other changes that resulted in other errors and realized I was over my poor man's debugging head.

Are you considering working on 3.0.1 compatibility?

sukima commented 8 years ago

Unfortunately no. I have had several requests for upgrading and I just do not have the time or resources to handle it. It got to the point where I placed in the README a big please help with the following:

I can no longer maintain this code on my own. I need contributions to make any effort worth while. I no longer use this in my day to day work and have no intention to provide support all on my own. This project follows a very loose contribution process in that a simple pull request is all that is needed to be given commit access. If you want a feature or have it upgraded to the latest version of Redmine or Rails I ask that you make a Pull Request with that change so that others can also benefit.

Redmine Equipment Status Viewer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.