search for: error_toobig

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

2006 Jul 25
1
How do I validate using associated objects?
....board.setting(:reply_thumbnail_at_height) end if @thumbnail.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/.