commandprompt/redmine_pastebin — Issue #11: Route issue when trying to view a Paste - Redmine 1.3.0
Author: real34
Created: 2012-01-31 07:26:25+00:00
State: open

When clicking on the title of a Paste from the index page, a route error is thrown.
Redmine version 1.3.0

Here is the log :

```text
Processing PastesController#index (for 192.168.12.254 at 2012-01-31 08:26:17) [GET]
Parameters: {"project_id"=>"ocitech-interne", "action"=>"index", "controller"=>"pastes"}
Rendering template within layouts/base
Rendering pastes/index
Completed in 61ms (View: 49, DB: 1) | 200 OK [http://xxx.com/projects/ocitech-interne/pastes]

Processing PastesController#show (for 192.168.12.254 at 2012-01-31 08:26:19) [GET]
Parameters: {"action"=>"show", "id"=>"1", "controller"=>"pastes"}
Rendering template within layouts/base
Rendering pastes/show

ActionView::TemplateError (No route matches {:id=>#, :action=>"edit"}) on line #34 of vendor/plugins/redmine_pastebin/app/views/pastes/show.html.erb:
31:

32:
33:

34: <%= manage_paste_links(@paste) %>
35:

36:
37: <%= render "sidebar" %>

/usr/lib/ruby/vendor_ruby/action_controller/routing/route_set.rb:420:in `generate'
/usr/lib/ruby/vendor_ruby/action_controller/url_rewriter.rb:218:in `rewrite_path'
/usr/lib/ruby/vendor_ruby/action_controller/url_rewriter.rb:197:in `rewrite_url'
/usr/lib/ruby/vendor_ruby/action_controller/url_rewriter.rb:175:in `rewrite'
/usr/lib/ruby/vendor_ruby/action_controller/base.rb:625:in `url_for'
/usr/lib/ruby/vendor_ruby/action_view/helpers/url_helper.rb:85:in `send'
/usr/lib/ruby/vendor_ruby/action_view/helpers/url_helper.rb:85:in `url_for'
/usr/lib/ruby/vendor_ruby/action_view/helpers/url_helper.rb:228:in `link_to'
app/helpers/application_helper.rb:43:in `link_to_if_authorized'
vendor/plugins/redmine_pastebin/app/helpers/pastes_helper.rb:93:in `edit_paste_link'
vendor/plugins/redmine_pastebin/app/helpers/pastes_helper.rb:109:in `manage_paste_links'
vendor/plugins/redmine_pastebin/app/views/pastes/show.html.erb:34
```