File_column partial still calling undefined method `cover_re

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’

Consider upload_column, seem’s to be a lot less bugy
http://uploadcolumn.rubyforge.org/ with new versions of rails

[email protected] 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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs