Created
April 15, 2014 16:09
-
-
Save blake41/10744418 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RESTful Rabbits | |
http://ididitmyway.herokuapp.com/past/2010/9/21/restful_rabbits/ | |
this is an exercise that teaches you about a convention of organizing your routes and your data called REST. | |
this uses a third ORM called Datamapper. | |
do this exercise as written with Datamapper. | |
then translate it to Sequel. then Activerecord. you will have 3 different apps. feel free to change up the animal if you want. | |
write a blog post comparing and contrasting ORMs. which do you like best and why? | |
RESOURCES: | |
ActiveRecord: http://api.rubyonrails.org/classes/ActiveRecord/Base.html | |
Sequel: http://sequel.jeremyevans.net/ | |
DataMapper: http://datamapper.org/ | |
NOTE: | |
if you choose to do this in HAML, change your sublime to use 2 spaces to indent. otherwise you'll find yourself in a world of hurt. | |
the docs are here: http://haml.info/ | |
you can always use ERB if you start losing your marbles about it, we'll talk about HAML in a week :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment