Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal error #85

Open
anton-sa opened this issue Feb 18, 2016 · 3 comments
Open

Internal error #85

anton-sa opened this issue Feb 18, 2016 · 3 comments

Comments

@anton-sa
Copy link

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
Copy link

Bingo!

@tx4
Copy link

tx4 commented Jul 23, 2017

Thanks!!

@cristian100
Copy link

Beautiful!! Saved my life!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants