-
Notifications
You must be signed in to change notification settings - Fork 78
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
Routes missing for Redmine 1.4.0 #24
Comments
I corrected that creating the file config/routes.rb with the following mapping: ActionController::Routing::Routes.draw do |map| map.connect '/importer/index', :controller => 'importer', :action => 'index' end Are there any other routes used? |
Hi, yes there are. The next problem is ActionView::TemplateError (No route matches {:action=>"match"}) on line #3 of vendor/plugins/redmine_importer/app/views/importer/index.html.erb:
Rendering /usr/share/redmine-1.4/public/500.html (500 Internal Server Error) NokSuKao |
Got it. Any more routes missing? |
Hi, how did you fix it? NokSuKao |
Create the file config/routes.rb with the following contents: ActionController::Routing::Routes.draw do |map| map.connect '/importer/index', :controller => 'importer', :action => 'index' map.connect '/importer/match', :controller => 'importer', :action => 'match' end If you have more problems with routes, just add more lines following that pattern. |
nice.I will check it. |
Hi, next problem at ActionView::TemplateError (No route matches {:action=>"result"}) on line #13 of vendor/plugins/redmine_importer/app/views/importer/match.html.erb:
Rendering /usr/share/redmine-1.4/public/500.html (500 Internal Server Error) i tried to add Processing ImporterController#match (for 192.168.0.154 at 2012-04-18 11:39:14) [POST] FasterCSV::MalformedCSVError (FasterCSV::MalformedCSVError): Rendering /usr/share/redmine-1.4/public/500.html (500 Internal Server Error) NokSuKao |
That route seems to work. The problem now is not with routes anymore. As you can see from you message, your CSV file is malformed somehow. FasterCSV::MalformedCSVError (FasterCSV::MalformedCSVError): |
|
Your line is wrong. You need to replace the controller and action paths with the ones from the plugin, and their routes. So far, this is the complete routes.rb file I have for this plugin: ActionController::Routing::Routes.draw do |map| map.connect '/importer/index', :controller => 'importer', :action => 'index' map.connect '/importer/match', :controller => 'importer', :action => 'match' map.connect '/importer/result', :controller => 'importer', :action => 'result' end |
Thank-you. |
anyone make a pull request? Thanks |
Hello, all! if Rails::VERSION::MAJOR >= 3 |
Hello mikewolfli Please check this, RedmineApp::Application.routes.draw do |
The new version of Redmine needs the routes for the plugins, as described in http://www.redmine.org/projects/redmine/wiki/Plugin_Tutorial#Generating-a-controller .
Because of the missing router, I'm getting this error:
The text was updated successfully, but these errors were encountered: