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

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.

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 Jones