View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
Your code might be,
but are you?
By Jeroen van Dijk
Examples of tools
to make you DRY...
I18n rake scaffolds sass
What is missing
to keep you DRY?
... An idea:
Scaffold of your
... for just one resource!
... not following my own conventions!
... that still requires a lot of customization!
All true, that’s why I’ll not talk about the old way
Don’t like uml or need
For examples or just to start
For an old application: “rake dm:export”
For a new application: “rake dm:xmi:to_yaml”
• which templates should be generated
• which attributes/association should be used
in your templates
• Adapt the templates to your liking
• Define your own formats
• super fast prototyping
• applying good conventions (e.g. css, models)
Not just uml2rails
The new DRY for Rails?
• Design the basics of your application
• Run the generator with your own
• Customize the application
Summary of features
Yaml/Uml export to:
OK Views (+helpers)
OK Custom formats
FAIL Documentation + Tests
PENDING Intelligent generation of Routes
PENDING Generation of Tests/Specs/Stories
Information on attributes and associations is exploited
in all of the above.
More info or contribute
Documentation/blog (coming soon)
rails shop -m http://www.jeevidee.nl/instant_rails_application.txt