Skip to content

Commit

Permalink
Merge pull request #5444 from kazu9su/master
Browse files Browse the repository at this point in the history
5361 Add documentation
  • Loading branch information
javierjulio committed Aug 7, 2018
2 parents 0fe85d7 + 7f679dd commit c301ab1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/10-custom-pages.md
Expand Up @@ -134,3 +134,17 @@ end
```

See also the [Custom Actions](8-custom-actions.md#http-verbs) example.

## Use custom column as id

You can use custom parameter instead of id

```ruby
ActiveAdmin.register User do
controller do
defaults :finder => :find_by_name
end
end
```

This defines the resource route as `/admin/users/john` if user name is john

0 comments on commit c301ab1

Please sign in to comment.