iRessources / AgileDwarf

Agile plugin for Redmine
120 stars 83 forks source link

Internal error #85

Open anton-sa opened 8 years ago

anton-sa commented 8 years ago

Hi, when I try to open one of the pages "Tasks", "Sprints" or ru charts i get the error:

Internal error

An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

i have installed AgileDwarf on redmine 3.2.0.stable.15111 (on debian). During the installation I had an error: "An error occurred while loading the routes definition of AgileDwarf plugin (/usr/share/redmine/plugins/AgileDwarf/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"."

I changed routes.rb to:

if Rails::VERSION::MAJOR < 3
  ActionController::Routing::Routes.draw do |map|
    map.connect 'adburndown/:action/:id', :controller => :adburndown
    map.connect 'adsprintinl/:action/:id', :controller => :adsprintinl
    map.connect 'adsprints/:action/:id', :controller => :adsprints
    map.connect 'adtaskinl/:action/:id', :controller => :adtaskinl
    map.connect 'adtasks/:action/:id', :controller => :adtasks
  end
else
  match 'adburndown/(:action(/:id))', :controller => 'adburndown', via: [ :get, :post ]
  match 'adsprintinl/(:action(/:id))', :controller => 'adsprintinl', via: [ :get, :post ]
  match 'adsprints/(:action(/:id))', :controller => 'adsprints', via: [ :get, :post ]
  match 'adtaskinl/(:action(/:id))', :controller => 'adtaskinl', via: [ :get, :post ]
  match 'adtasks/(:action(/:id))', :controller => 'adtasks', via: [ :get, :post ]
end
rbrazileiro commented 8 years ago

Bingo!

tx4 commented 7 years ago

Thanks!!

cristian100 commented 6 years ago

Beautiful!! Saved my life!