Displaying 1 result from an estimated 1 matches for "asdfasdfasdfa".
Did you mean:
asdfasdfasdf
2006 Aug 14
2
after_create is not being called
...nspect)
end
end
rescue SystemCallError
errors.add_to_base("The directory #{get_images_path} does not
exist")
end
def after_create
if errors.empty?
get_images.each do |image|
photos.create :file => image.basename
end
end
raise ="asdfasdfasdfa"
end
# some more stuff...
end
When I create a new photo gallery in the console, then after_validation
is being called without any problem, but after_create isn''t! I got no
idea why... :-(
Anyone has a clue? Thanks a lot.
Joshua
PS: I know, my Ruby style is still pretty bad.....