Displaying 1 result from an estimated 1 matches for "set_to_last_posit".
2005 Aug 17
7
(newbie) #{method}_relative_path empty (file upload 0.1.2)
...ut couldn''t find where it
breaks, if anything I''m doing is conflicting with the module for
instance.
here''s the model
require_dependency ''rails_file_column''
class Photo < ActiveRecord::Base
belongs_to :user
file_column :file
def set_to_last_position
position = user.photos.size + 1
end
def before_create
set_to_last_position
end
end
any ideas why FileColumn wouldn''t find the file''s relative path?
thanks
oliver