file_column question from new ror user


My guess is that you need to put parenthesis around the parameters of
url_for_file_column. So it would look like <%= image_tag
url_for_file_column( 'entry', 'image' ,'thumb' ) %>

Otherwise Rails can't know if those parameters are for the image_tag
method or for the other one.

- Jone

Stanley Wong wrote:

Yeah, you are right about it being reserved word in Rails. Well
actually not reserved, but reported to cause problems. Good site to
check those reserved and problematic names is this.