Skip to content

Commit 9c79376

Browse files
jsmestadkarmi
authored andcommittedFeb 11, 2017
[RAILS] Updated the 03-expert application template to work with Rails 5
Latest Rails versions do not have a README.rdoc, use README.md Closes #668
1 parent 5c692b7 commit 9c79376

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎elasticsearch-rails/lib/rails/templates/03-expert.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# $ rails new searchapp --skip --skip-bundle --template https://raw.github.com/elasticsearch/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/03-expert.rb
22

3-
unless File.read('README.rdoc').include? '== [2] Pretty'
3+
unless File.read('README.md').include? '== [2] Pretty'
44
say_status "ERROR", "You have to run the 01-basic.rb and 02-pretty.rb templates first.", :red
55
exit(1)
66
end
@@ -21,9 +21,9 @@
2121
exit(1)
2222
end
2323

24-
append_to_file 'README.rdoc', <<-README
24+
append_to_file 'README.md', <<-README
2525
26-
== [3] Expert
26+
## [3] Expert
2727
2828
The `expert` template changes to a complex database schema with model relationships: article belongs
2929
to a category, has many authors and comments.
@@ -39,7 +39,7 @@
3939
4040
README
4141

42-
git add: "README.rdoc"
42+
git add: "README.md"
4343
git commit: "-m '[03] Updated the application README'"
4444

4545
# ----- Add gems into Gemfile ---------------------------------------------------------------------

0 commit comments

Comments
 (0)