Calling url_for_file_colum results in a TypeError: can''t convert nil to string. The error is in line 148 of filecolumn.rb: def relative_path(subdir=nil) File.join(relative_path_prefix,subdir, @filename) end If I substitute '''' for subdir in the File.join command, then it seems to work fine. Since this is a plugin, I''m wondering why I need to make this modification. Is there something wrong with my install or with the plugin? --------------------------------- Yahoo! Personals Single? There''s someone we''d like you to meet. Lots of someones, actually. Try Yahoo! Personals _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi Wolfgang, On 12/4/05, Wolfgang Borgon <wborgon-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Calling url_for_file_colum results in a TypeError: can''t convert nil to > string. > > The error is in line 148 of filecolumn.rb: > def relative_path(subdir=nil) > File.join(relative_path_prefix,subdir, @filename) > end > > If I substitute '''' for subdir in the File.join command, then it seems to > work fine. Since this is a plugin, I''m wondering why I need to make this > modification. Is there something wrong with my install or with the plugin?well, even a plugin can have bugs... Even more so if I''m the author :) Thanks for the bug report. I''m wondering which OS you are on as File.join works on my system even if one of the arguments is nil. Perhaps other platforms behave in a different way here? Having said this, I just committed a work-around to the trunk that should fix this problem. BTW, it seems you are using the latest version from the trunk. While I try to keep this as bug-free as possible it is not as stable as an official releases. You can find them in the repository''s "tags/" directory. Sebastian
Sebastian, No problem, thanks for the clarification. I''m using Fedora 4. -W Sebastian Kanthak <skanthak-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: Hi Wolfgang, On 12/4/05, Wolfgang Borgon wrote:> Calling url_for_file_colum results in a TypeError: can''t convert nil to > string. > > The error is in line 148 of filecolumn.rb: > def relative_path(subdir=nil) > File.join(relative_path_prefix,subdir, @filename) > end > > If I substitute '''' for subdir in the File.join command, then it seems to > work fine. Since this is a plugin, I''m wondering why I need to make this > modification. Is there something wrong with my install or with the plugin?well, even a plugin can have bugs... Even more so if I''m the author :) Thanks for the bug report. I''m wondering which OS you are on as File.join works on my system even if one of the arguments is nil. Perhaps other platforms behave in a different way here? Having said this, I just committed a work-around to the trunk that should fix this problem. BTW, it seems you are using the latest version from the trunk. While I try to keep this as bug-free as possible it is not as stable as an official releases. You can find them in the repository''s "tags/" directory. Sebastian _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails --------------------------------- Yahoo! Personals Single? There''s someone we''d like you to meet. Lots of someones, actually. Try Yahoo! Personals _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails