Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions elasticsearch-rails/lib/rails/templates/03-expert.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $ rails new searchapp --skip --skip-bundle --template https://raw.github.com/elasticsearch/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/03-expert.rb

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

append_to_file 'README.rdoc', <<-README
append_to_file 'README.md', <<-README

== [3] Expert
## [3] Expert

The `expert` template changes to a complex database schema with model relationships: article belongs
to a category, has many authors and comments.
Expand All @@ -39,7 +39,7 @@

README

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

# ----- Add gems into Gemfile ---------------------------------------------------------------------
Expand Down