I have recently installed the lightbox plugin on our Redmine server and get the following error in my production log when trying to access an issue with an attachment.
Processing IssuesController#show (for 24.18.232.68 at 2011-12-13 22:32:41) [GET]
Parameters: {"action"=>"show", "id"=>"820", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml
ActionView::TemplateError (undefined method `attachment_path' for #ActionView::Base:0x2aac319260f0) 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',
I have recently installed the lightbox plugin on our Redmine server and get the following error in my production log when trying to access an issue with an attachment.
Processing IssuesController#show (for 24.18.232.68 at 2011-12-13 22:32:41) [GET] Parameters: {"action"=>"show", "id"=>"820", "controller"=>"issues"} Rendering template within layouts/base Rendering issues/show.rhtml
ActionView::TemplateError (undefined method `attachment_path' for #ActionView::Base:0x2aac319260f0) 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',
Rendering /home/rails/redmine-1.2/public/500.html (500 Internal Server Error)