Skip to content

Commit e5c61b2

Browse files
committed
[RAILS] Fixed an error in the 01-pretty.rb template
Due to different capitalization of the main header, the search <form> was not inserted into the `index.html.erb` template. Closes elastic#327
1 parent 1fd6c0b commit e5c61b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch-rails/lib/rails/templates/01-basic.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,10 @@ def search
209209
CODE
210210
end
211211

212-
inject_into_file 'app/views/articles/index.html.erb', after: %r{<h1>Listing articles</h1>} do
212+
inject_into_file 'app/views/articles/index.html.erb', after: %r{<h1>Listing articles</h1>}i do
213213
<<-CODE
214214
215+
215216
<hr>
216217
217218
<%= form_tag search_articles_path, method: 'get' do %>
@@ -221,7 +222,6 @@ def search
221222
<% end %>
222223
223224
<hr>
224-
225225
CODE
226226
end
227227

0 commit comments

Comments
 (0)