Skip to content

Commit d037400

Browse files
authored
Rename Logs::Index example (#1289)
1 parent 827d1fa commit d037400

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/actions/guides/http_and_routing/request_and_response.cr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,10 @@ class Guides::HttpAndRouting::RequestAndResponse < GuideAction
325325
respectively.
326326
327327
```crystal
328-
class Logs::Index < BrowserAction
329-
get "/logs" do
330-
logs = LogQuery.new
331-
html IndexPage, logs: logs
328+
class LogEntries::Index < BrowserAction
329+
get "/log_entries" do
330+
log_entries = LogEntryQuery.new
331+
html IndexPage, log_entries: log_entries
332332
end
333333
334334
def html_content_type

0 commit comments

Comments
 (0)