From 3d861d866b14f103bf85d5c4979bec56036d7ce2 Mon Sep 17 00:00:00 2001 From: DFischer Date: Fri, 19 Aug 2011 02:38:15 -0700 Subject: [PATCH] * Rails 3.1 example of install * Fixed path to formtastic_cocoon_demo example --- README.markdown | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index b0b249c..1caa1ad 100644 --- a/README.markdown +++ b/README.markdown @@ -24,6 +24,15 @@ Inside your `Gemfile` add the following: gem "cocoon" +### Rails 3.1 + +Add the following to `application.js` so it compiles to the +asset_pipeline + +`//= require cocoon` + +### Rails 3.x + If you are using Rails 3.0.x, you need to run the installation task (since rails 3.1 this is no longer needed): rails g cocoon:install @@ -92,7 +101,7 @@ and inside the `_task_fields` partial we write: That is all there is to it! -There is an example project on github implementing it called [formtastic-cocoon-demo](https://github.com/nathanvda/formtastic-cocoon-demo). +There is an example project on github implementing it called [formtastic-cocoon-demo](https://github.com/nathanvda/formtastic_cocoon_demo). ### Using simple_form