Displaying 2 results from an estimated 2 matches for "set_size_from_temp_path".
2007 Jun 29
1
attachment_fu validation error
...go.find(:first).valid?
NameError: undefined local variable or method `full_filename'' for
#<Logo:0x3561ed8>
And unfortunately that is triggered by something''s
validates_associated if no logo is uploaded in its edition. I don''t
see why valid? ends up calling set_size_from_temp_path, sizes were
correctly computed and stored on creation:
pp Logo.find(:first)
#<Logo:0x35593f0
@attributes=
{"content_type"=>"image/jpeg",
"size"=>"187697",
"thumbnail"=>nil,
"id"=>"1&q...
2007 Dec 13
4
Attachment_fu problems on updates
...ment_fu.rb:281:in
`temp_paths''
vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:275:in
`temp_path''
vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:241:in
`save_attachment?''
vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:344:in
`set_size_from_temp_path''
vendor/rails/activerecord/lib/active_record/callbacks.rb:307:in `send''
If I update the user without selecting a new picture, the users picture
is lost (the db row values are set to nil)
Here is the controller code for the update:
--------------------------------
def update...