diff --git a/History.txt b/History.txt index 69721f7..cc0fa1b 100644 --- a/History.txt +++ b/History.txt @@ -1,3 +1,5 @@ +* upgraded to Rails 3 and RSpec 2. No BC (as of yet). + * added ResourceMethods#destroy_resource, which calls destroy on the resource_service, which in turn finds the best way to destroy the resource to trigger any association callbacks. Changed actions to use the destroy_resource method. (reported by Jason Lee) diff --git a/README.rdoc b/README.rdoc index a5e4098..474ebd0 100644 --- a/README.rdoc +++ b/README.rdoc @@ -5,6 +5,30 @@ you override the default RESTful funtionality in a clean and simple manner. See History.txt for recent changes. +== Rails 3 version + +Garlic doesn't work with Rails 3, so here's how to test resources_controller in the meantime. + +Generate a rails app: + + rails new rc_test + +and then add the following to the generated Gemfile: + + gem 'rspec', '~> 2.0.0.beta.20' + gem 'rspec-rails', '~> 2.0.0.beta.20' + +Then run + + bundle install + rails generate rspec:install + +Copy resources_controller into vendor/plugins and run + + rake rcov:verify && rake spec:generate + +from the resources_controller directory + == Resources Github for code: http://github.com/ianwhite/resources_controller