Upload
others
View
4
Download
0
Embed Size (px)
Citation preview
Happiness with Ruby on Rails
www.new-bamboo.co.uk
What is it?
• Nothing new... Well sort of.
• MVC
• Convention over configuration
• Ruby front to back
The three A’s
• Activerecord
• Activesupport
• Actionpack
Activerecord
• Rich models
• No XML configuration files
• DSL to describe model relationships
• DSL to describe validation
REST
• URI’s become resources http://www.new-bamboo.co.uk/users/234
• POST - Create
• PUT - Update
• DELETE - Destroy
• GET - Show/Edit/Index
Routes
/users/users/2
/users/2;edit/users/2/account
Routes
• users_url (GET) - Index
• user_url(id) (GET) - Show
• user_url(id) (DELETE) - Destroy
• user_url(id) (PUT) - Update
So what?
RJS
Beautiful testing
Test::Unit
RSpec
So what’s the difference?
• Vocabulary
• Hopefully a transition in thinking
It’s Ruby that makes me happy:)