* Rails 3.1 example of install
* Fixed path to formtastic_cocoon_demo example
This commit is contained in:
parent
07d8116916
commit
3d861d866b
@ -24,6 +24,15 @@ Inside your `Gemfile` add the following:
|
|||||||
|
|
||||||
gem "cocoon"
|
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):
|
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
|
rails g cocoon:install
|
||||||
@ -92,7 +101,7 @@ and inside the `_task_fields` partial we write:
|
|||||||
|
|
||||||
That is all there is to it!
|
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
|
### Using simple_form
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user