Rails 1.2 is not out as of this writing, but it is expected soon. These features are currently available on
edge rails.
Resource Routes - edge rails
rdocs
peepcode.com cheatsheet
Set up basic CRUD routes for your resources:
# simple
map.resources :posts
# nested
map.resources :people do |person|
person.resources :phone_numbers
end
Resource Generator - edge rails
Will generate a RESTful model, controller, views, tests and migration.
ruby script/generate scaffold_resource person name:string age:integer created_at:datetime birthday:date
RSpec Resource Generator - plugin
announcement
svn
Equivalent to scaffold_resource generator for people using BDD/
RSpec. Will generate specs instead of tests.
simply_helpful - plugin
writeup
Lots of helper methods for REST. Sugar for rendering collections, autogenerate DOM ID, form blocks and more.
restful_authentication - plugin
readme
svn
Will generate RESTful user/session functionality. Also has an authenticated_mailer generator, although as of the time of this writing, it doesn't work out of the box with the user controller/model. You'll need to finish off the activation code.
ActiveResource - edge rails
writeup
Update - delayed .. will not ship with Rails 1.2.
ActiveRecord-like interface to RESTful services. Note, "rake rails:freeze:edge" did not give me this library, I had to use:
svn co http://dev.rubyonrails.org/svn/rails/trunk vendor/rails