zipme/redmine_lightbox — Issue #30: Internal server error
Author: giany
Created: 2011-12-26 16:31:38+00:00
State: open

I'm using :Redmine 1.2.1.stable and I'm getting internal server error when trying to access a link:

Processing IssuesController#show (for 1.1.1.1 at 2011-12-26 16:11:12) [GET]
Parameters: {"action"=>"show", "id"=>"69", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml

ActionView::TemplateError (undefined method `attachment_path' for #) on line #12 of vendor/plugins/redmine_lightbox/app/views/attachments/_links.rhtml:
9: <% end -%>
10:
11: <% if options[:deletable] %>
12: <%= link_to image_tag('delete.png'), attachment_path(attachment),
13: :confirm => l(:text_are_you_sure),
14: :method => :delete,
15: :class => 'delete',

vendor/plugins/redmine_lightbox/app/views/attachments/_links.rhtml:12:in `_run_rhtml_vendor47plugins47redmine_lightbox47app47views47attachments47_links46rhtml_locals_attachments_links_object_options'
vendor/plugins/redmine_lightbox/app/views/attachments/_links.rhtml:2:in `_run_rhtml_vendor47plugins47redmine_lightbox47app47views47attachments47_links46rhtml_locals_attachments_links_object_options'
app/helpers/attachments_helper.rb:27:in `link_to_attachments'
app/views/issues/show.rhtml:60:in `_run_rhtml_app47views47issues47show46rhtml'
app/controllers/issues_controller.rb:122:in `show'
app/controllers/issues_controller.rb:121:in `show'
thin (1.2.11) lib/thin/connection.rb:84:in `pre_process'
thin (1.2.11) lib/thin/connection.rb:82:in `catch'
thin (1.2.11) lib/thin/connection.rb:82:in `pre_process'
thin (1.2.11) lib/thin/connection.rb:57:in `process'
thin (1.2.11) lib/thin/connection.rb:42:in `receive_data'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
thin (1.2.11) lib/thin/backends/base.rb:61:in `start'
thin (1.2.11) lib/thin/server.rb:159:in `start'
thin (1.2.11) lib/thin/controllers/controller.rb:86:in `start'
thin (1.2.11) lib/thin/runner.rb:185:in `send'
thin (1.2.11) lib/thin/runner.rb:185:in `run_command'
thin (1.2.11) lib/thin/runner.rb:151:in `run!'
thin (1.2.11) bin/thin:6
/usr/bin/thin:19:in `load'
/usr/bin/thin:19

Rendering /web/www/projects.p.com/public_html/public/500.html (500 Internal Server Error)

Any idea what is this?