# File\_column partial still calling undefined method \`cover\_re

**URL:** <https://www.ruby-forum.com/t/file-column-partial-still-calling-undefined-method-cover-re/104546>\
**Category:** Rails\
**Created:** [May 19, 2007, 4:47am UTC](https://www.ruby-forum.com/t/file-column-partial-still-calling-undefined-method-cover-re/104546 "2007-05-19T04:47:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 19, 2007, 4:47am UTC](https://www.ruby-forum.com/t/file-column-partial-still-calling-undefined-method-cover-re/104546/1 "2007-05-19T04:47:49Z")

</div>

I’m getting the error " undefined method `cover\_relative\_path’ " when  
I launch my app. When I’m using the @upcoming.each the file\_column  
can’t find the cover.

The cover is found with no problem in my index page which has the  
identical code. Both actions, index and upcoming, are under the albums  
controller. The cover is located in the db under albums\>cover. The  
difference between my index and upcoming is that I use .each do |i|  
statement in the upcoming because I’m using pagenation and search and  
it doesnt seem to find the variables without that. In index I use  
@albums = albums as the file\_column wiki suggests for partials but it  
doesnt seem to do anything in this scenario.

btw, the varliables like permalink come up fine, its just the cover  
thats not working

preview without erb

@upcoming.each do |i|

link albums\_url(:permalink =\> i.permalink)

image\_tag url\_for\_file\_column(“albums”, “cover”), :id =\> ‘cover’

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 19, 2007, 3:22pm UTC](https://www.ruby-forum.com/t/file-column-partial-still-calling-undefined-method-cover-re/104546/2 "2007-05-19T15:22:05Z")

</div>

Consider upload\_column, seem’s to be a lot less bugy  
[http://uploadcolumn.rubyforge.org/](http://uploadcolumn.rubyforge.org/) with new versions of rails

removed\_email\_address@domain.invalid wrote:

> I’m getting the error " undefined method `cover\_relative\_path’ " when  
> I launch my app. When I’m using the @upcoming.each the file\_column  
> can’t find the cover.
