You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fully working Ruby on Rails application can be generated with the following command:
646
646
647
647
```bash
648
-
rails new music --force --skip --skip-bundle --skip-active-record --template https://raw.githubusercontent.com/elasticsearch/elasticsearch-rails/persistence-model/elasticsearch-persistence/examples/music/template.rb
648
+
rails new music --force --skip --skip-bundle --skip-active-record --template https://raw.githubusercontent.com/elasticsearch/elasticsearch-rails/master/elasticsearch-persistence/examples/music/template.rb
649
649
```
650
650
651
651
The application demonstrates:
652
652
653
653
* How to set up model attributes with custom mappings
654
-
* How to configure model relationships with Elasticsearch's parent/child
654
+
* How to define model relationships with Elasticsearch's parent/child
655
655
* How to configure models to use a common index, and create the index with proper mappings
656
656
* How to use Elasticsearch's completion suggester to drive auto-complete functionality
657
-
* How to use Elasticsearch-persisted model in Rails' views and forms
657
+
* How to use Elasticsearch-persisted models in Rails' views and forms
658
658
* How to write controller tests
659
659
660
660
The source files for the application are available in the [`examples/music`](examples/music) folder.
0 commit comments