zipme/redmine_lightbox — Issue #26: throws 500 internal server error in Bitnami 1.2.1
Author: anandakmanchi
Created: 2011-12-12 16:00:50+00:00
State: open

I installed this in bitnami 1.2.1 stack, ran a db:migrate and restarted

now i get a 500 internal server error whenever i try to open an existing issue or create a new one with attachment

existing issues without attachments work fine though.

here is the log

Processing IssuesController#show (for 172.30.5.10 at 2011-12-12 21:20:36) [GET]
Parameters: {"action"=>"show", "id"=>"139", "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'
config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'

Rendering C:/Program Files/BitNami Redmine Stack/apps/redmine/public/500.html (500 Internal Server Error)