Generate a controller with all the RESTful functions
In Rails 3 there is also rails generate scaffold_controller ...
. More info here.
I don't know about an automated way of doing it, but if you do:
script/generate controller your_model_name_in_plural new create update edit destroy index show
All of them will be created for you
Update for Rails 4
rails g scaffold_controller Property