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.16.0 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.15.2 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.15.1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.15.0 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.14.4 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.14.3 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.14.2 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.14.1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.13.1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.12.2 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.13.0 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.12.1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.13.0.pre1 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.12.0 docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.11.2 docs/adding_fixtures_aka_dummy_content.md
decidim-0.12.0.pre docs/advanced/adding_fixtures_aka_dummy_content.md
decidim-0.11.1 docs/adding_fixtures_aka_dummy_content.md
decidim-0.11.0.pre1 docs/adding_fixtures_aka_dummy_content.md