File_column undefined method relative_url_root

I just installed and started using the file_column plugin and am
getting the following error:

No Method Error
undefined method ‘relative_url_root’ for nil:NilClass

Extracted source (around line #5)
5: <%= image_tag url_for_file_column(“fan”, “image_url”) %>

I’m running Rails 3.0.1.

Does anyone know what I need to do to fix this?

Thanks,
Tara

On Sun, Apr 17, 2011 at 12:32 PM, Tara S.
[email protected]wrote:

Does anyone know what I need to do to fix this?

Thanks,
Tara

It means that whatever object you are trying to use the method
relative_url_root on is nil so therefore no method exists. Check to make
sure in your code that the object you are passing in actually exists.

B.

On Apr 17, 1:32pm, Tara S. [email protected] wrote:

Does anyone know what I need to do to fix this?

file_column is quite ancient by plugin standards - you may want to
look into using a more modern replacement. Otherwise, you’ll need to
post the full stack trace, as the error alone isn’t particularly
helpful.

–Matt J.

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