Skip to content

Commit be1fad1

Browse files
refactor: Simplify docs by pointing to main file
1 parent 015433d commit be1fad1

File tree

1 file changed

+1
-35
lines changed
  • contents/docs/error-tracking/installation

1 file changed

+1
-35
lines changed

contents/docs/error-tracking/installation/rails.mdx

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -248,38 +248,4 @@ PostHog::Rails.config.excluded_exceptions = ['MyException']
248248

249249
</Steps>
250250

251-
## Configuration reference
252-
253-
| Option | Type | Default | Description |
254-
|--------|------|---------|-------------|
255-
| `auto_capture_exceptions` | Boolean | `false` | Automatically capture exceptions |
256-
| `report_rescued_exceptions` | Boolean | `false` | Report exceptions Rails rescues |
257-
| `auto_instrument_active_job` | Boolean | `false` | Instrument ActiveJob |
258-
| `capture_user_context` | Boolean | `true` | Include user info |
259-
| `current_user_method` | Symbol | `:current_user` | Controller method for user |
260-
| `user_id_method` | Symbol | `nil` | Method to extract ID from user object |
261-
| `excluded_exceptions` | Array | `[]` | Additional exceptions to ignore |
262-
263-
## Troubleshooting
264-
265-
### Exceptions not being captured
266-
267-
1. Verify PostHog is initialized:
268-
```ruby
269-
Rails.console
270-
> PostHog.initialized?
271-
=> true
272-
```
273-
274-
2. Check that `auto_capture_exceptions` is set to `true`
275-
3. Check your excluded exceptions list
276-
4. Verify middleware is installed:
277-
```ruby
278-
Rails.application.middleware
279-
```
280-
281-
### User context not working
282-
283-
1. Verify `current_user_method` matches your controller method
284-
2. Check that the user object responds to `posthog_distinct_id`, `distinct_id`, or `id`
285-
3. If using a custom identifier, set `PostHog::Rails.config.user_id_method = :your_method`
251+
You can learn more about our Rails integration in our [Rails library docs](/docs/libraries/rails).

0 commit comments

Comments
 (0)