As a Struts dev, I'm writing lots of code pieces over and over again (form beans, actions, ...). So recently I've been looking to code generation, and I've found that there are two ways to do this: from an analyst point-of-view (Model Driven Architecture, meaning generating code from UML or other models) and the RoR approach, which is more like code generation from a developer perspective.
What I want to know is this: How do MDA and RoR relate to each other? Should I choose one of both approaches, depending on the project size e.g.? can I combine them and generate Rails code from a UML diagram, and would it make sense to do this?