search for: maximum_image_width

Displaying 1 result from an estimated 1 matches for "maximum_image_width".

2006 Jul 25
1
How do I validate using associated objects?
...ail.columns > x or @thumbnail.rows > y @thumbnail.change_geometry!("#{x}x#{y}") {|cols, rows, img| img.resize!(cols, rows)} end end def validate_on_create errors.add_to_base(comment.board.language(:error_toobig)) if self[:image_width] > comment.board.setting(:maximum_image_width) end end -- Posted via http://www.ruby-forum.com/.