Skip to content

Commit 01a9a18

Browse files
authored
Ruby syntax error. (#42)
1 parent b5db93f commit 01a9a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/concepts/resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ First, **you must use [has_many :through](https://guides.rubyonrails.org/associa
11751175
{% highlight ruby %}
11761176
class Employee < ApplicationRecord
11771177
has_many :team_memberships
1178-
has_many :teams, through :team_memberships
1178+
has_many :teams, through: :team_memberships
11791179
end
11801180

11811181
class TeamMembership < ApplicationRecord

0 commit comments

Comments
 (0)