All pastes #191904 Raw Edit

RubyActiveRecordProb

public ruby v1 · immutable
·published 2006-10-05 13:52 UTC
rendered paste body
def foo      db = Db.new @params[:db]      db.client = session[:client]      db.name = db.client.username + '_' + db.name      db.dbusers.create @params[:dbuser]      db.save!end# If not everything is filled in correct for dbusers, I get an ActiveRecord::Error stating "Dbusers is invalid". When I, however, inspect the ActiveRecord::Error a bit # further, I see it contains my nicely formed validation messages from Dbusers, any way I can extract those?