Skip to content

Commit a5ca35d

Browse files
committed
[RAILS] Added links to the Rails application templates in the README
1 parent 62ba171 commit a5ca35d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

elasticsearch-rails/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,24 @@ You should see the duration of the request to Elasticsearch as part of each log
7878

7979
You can generate a fully working example Ruby on Rails application, with an `Article` model and a search form,
8080
to play with (it even downloads _Elasticsearch_ itself, generates the application skeleton and leaves you with
81-
a _Git_ repository to explore the steps and the code):
81+
a _Git_ repository to explore the steps and the code) with the
82+
[`01-basic.rb`](https://github.com/elasticsearch/elasticsearch-rails/blob/master/elasticsearch-rails/lib/rails/templates/01-basic.rb) template:
8283

8384
```bash
8485
rails new searchapp --skip --skip-bundle --template https://raw.github.com/elasticsearch/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/01-basic.rb
8586
```
8687

87-
Run the same command again, in the same folder, with the `02-pretty` template to add features such as
88-
a custom `Article.search` method, result highlighting and [_Bootstrap_](http://getbootstrap.com) integration:
88+
Run the same command again, in the same folder, with the
89+
[`02-pretty`](https://github.com/elasticsearch/elasticsearch-rails/blob/master/elasticsearch-rails/lib/rails/templates/02-pretty.rb)
90+
template to add features such as a custom `Article.search` method, result highlighting and
91+
[_Bootstrap_](http://getbootstrap.com) integration:
8992

9093
```bash
9194
rails new searchapp --skip --skip-bundle --template https://raw.github.com/elasticsearch/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/02-pretty.rb
9295
```
9396

94-
Run the same command with the `03-expert.rb` template to refactor the application into a more complex use case,
97+
Run the same command with the [`03-expert.rb`](https://github.com/elasticsearch/elasticsearch-rails/blob/master/elasticsearch-rails/lib/rails/templates/03-expert.rb)
98+
template to refactor the application into a more complex use case,
9599
with couple of hundreds of The New York Times articles as the example content.
96100
The template will extract the Elasticsearch integration into a `Searchable` "concern" module,
97101
define complex mapping, custom serialization, implement faceted navigation and suggestions as a part of

0 commit comments

Comments
 (0)