Skip to content

Commit 52b974b

Browse files
committed
Update docs
1 parent 2125486 commit 52b974b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ For example, a link that deletes a user from a Rails admin panel might look like
1111
With Superlink, the same link can be written as:
1212

1313
```erb
14-
<% delete(@user, &:name) %>
14+
<%= delete(@user, &:name) %>
15+
```
16+
17+
Assuming the controller has been scoped to the `admin` namespace:
18+
19+
```ruby
20+
class Admin::UsersController < ApplicationController
21+
def url = super.join("admin")
22+
end
1523
```
1624

1725
## Installation

0 commit comments

Comments
 (0)