Hi John, Thanks for the reply! =)
Validations are still tied to ActiveRecord in the most recent stable version of Rails, I think. I'm looking forward to Rails 3 when all of this stuff will be finally fully separated and compartmentalized. But using the Validatable plugin (http://validatable.rubyforge.org/), I managed to get Rails to handle validation on the launch item before giving it to the engine, even though launch items are not ActiveRecords. This should work for this particular purpose and I'll take a look at the "parameter" expression as well. Thanks again! - Enrico On Jul 31, 6:13 pm, John Mettraux <[email protected]> wrote: > Hi Enrico, > > I'm away for the week-end. But look at the expression named 'parameter'. > > You might perhaps want to write a bit of logic on your side before > firing the launchitem. You could have a simple object with > verification logic and finally a to_launchitem method that you call > once all verifications are ok. iirc, the recent rails allow you to put > verification logic on any class. > > Note that you have to query the engine about process errors. The > engine is polite enough not to break the execution of the adjacent > pieces of code. You thus have to ask it about what went wrong with a > process. > > Best regards, > > John > > -- > John Mettraux - http://jmettraux.wordpress.com --~--~---------~--~----~------------~-------~--~----~ you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
