I've got an application which I am developing on a Windows machine and
everything works just fine. Once I upload it on my server (Debian) and
test it I get following error:
ActionView::TemplateError (undefined local variable or method `filename'
for #<News:0x41105540>) on line #8 of news/index.html.erb:
5: </tr>
6: <tr>
7: <td class="news_table_pic">
8: <%= image_tag(news.public_filename)
%><br>
9: Erstellt am <%=
news.created_at.strftime("%d.%m.%Y") %><br>
10: von <%=h news.author %>
11: </td>
I'm using attachment_fu.
Anyone knows why it doesn't work on my debian machine?
OK, could have been a version conflict between Rails and
attachment-fu. One thing I didn't think of asking was to ensure you
had run the migrations in production. Pleased to hear you are good to
go.