mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
commit
74eb88c3ad
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ You can, and are encouraged to, use this method in views:
|
|||
|
||||
``` erb
|
||||
<% policy_scope(@user.posts).each do |post| %>
|
||||
<p><% link_to @post.title, post_path(post) %></p>
|
||||
<p><% link_to post.title, post_path(post) %></p>
|
||||
<% end %>
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue