Basically, I have ebook that has_one :ebook_cover and has_one :ebook_download. Both ebook_cover and ebook_download belongs_to :ebook. Pretty simple, right?
A template error pops up when i try to get the ebook.ebook_download. Look at the debug(ebook): http://pastie.caboo.se/87522
Strangely though, ebook.ebook_cover works fine. If you want to see my production.log, check out   http://pastebin.ca/657036
Btw, this works fine in the localhost. I'm using a logger so it might look a little diff, however, the same error still shows:
Aug 14 10:25:34 owen rails[5884]: ActionView::TemplateError (exit) on
line #8 of app/views/home/index.rhtml:5: <ul>
6: <li><%= link_to(@ebook.title, :controller => "ebooks", :action => "show", :id => @ebook) %></li>
7: <li><%= image_tag(@ebook.ebook_cover.public_filename(:thumb) ) %></li>
8: <li><%= debug(@ebook.ebook_download) %></li>
What is it I'm doing wrong?