Skip to content

Commit

Permalink
Fix typos and formatting in hiding dashboard docs (#2215)
Browse files Browse the repository at this point in the history
This also fixes a typo in the associate spec.
  • Loading branch information
dharamgollapudi authored Aug 8, 2022
1 parent f10b556 commit 7cde042
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/guides/hiding_dashboards_from_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: Hiding Dashboards from the Sidebar
---

Resources can be removed form the sidebar by removing their index action from the routes. For example:
Resources can be removed from the sidebar by removing their `index` action
from the routes. For example:

```ruby
# config/routes.rb
Expand All @@ -16,4 +17,5 @@ Rails.application.routes.draw do
end
```

In this case, only Orders and Products will appear in the sidebar, while Line Items can still appear as an association.
In this case, only Orders and Products will appear in the sidebar, while
Line Items can still appear as an association.
2 changes: 1 addition & 1 deletion spec/features/documentation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
visit("/guides/hiding_dashboards_from_sidebar")

expect(page).to have_css("div.main h1", text: "Hiding Dashboards from")
expect(page).to have_content("Resources can be removed form the sidebar")
expect(page).to have_content("Resources can be removed from the sidebar")
end

it "links to each documentation page" do
Expand Down

0 comments on commit 7cde042

Please sign in to comment.