Sha256: aad74d0da1bc80841d9d7547d81fd4571df75076534bfc8cb2d7135ce927c7b2

Contents?: true

Size: 493 Bytes

Versions: 38

Compression:

Stored size: 493 Bytes

Contents

# How to add dummy content to a development application?

## Proposals example

1. In decidim-proposals open `lib/decidim/proposals/component.rb`.
1. Find the `component.seeds do...` block.
1. Create your dummy content as if you were in a `db/seed.rb` script.
  - Take advantage of the Faker gem, already in decidim.
  - You can use https://github.com/decidim/decidim/blob/master/decidim-core/lib/decidim/faker/localized.rb, which uses `Faker` internally, if you need content for i18n fields.

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-0.23.6 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.23.5 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.23.4 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.23.3 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.23.2 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.23.1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.23.1.rc1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.23.0 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.22.0 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.21.0 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.20.1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.20.0 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.19.1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.18.1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.19.0 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.17.2 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.18.0 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.17.1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.16.1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.17.0 docs/advanced/adding_fixtures_aka_dummy_content.md