search for: after_delet

Displaying 2 results from an estimated 2 matches for "after_delet".

Did you mean: after_delete
2006 Apr 06
6
Flexible data schema in a database?
I figured I pose this to the list and see if any one can build a better mousetrap. The problem: 1. Store hierarchical data in a database, but without knowing the hierarchy beforehand. 2. Allow the user to define there own hierarchy, and allow the system to support multiple hierarchies. Call it a cataloging system, we have an object and we want to add data about that object to the system. Now
2006 Apr 13
0
Model with file uploads
...? errors.add ''field_video'', ''Invalid video'' unless !self.field_video.read.empty? end def after_create self.tag_with self.all_tags # upload field_video and upload field_thumb end def after_update self.tag_with self.all_tags end def after_delete # delete video and thumb files end def tags # return formatted tags from tag_list end def thumb # return full thumb url end def video # return full video url end end -- Posted via http://www.ruby-forum.com/.