exercism / exercism/website

ActionView::Template::Error: undefined method 'created_at' for nil (ActionView::Template::Error)

Open
#8,783 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
548
Forks
168
Avg merge
1d 3h
Merged PRs (30d)
28

Description

## Error

```
undefined method 'created_at' for nil (NoMethodError)

def first_submitted_at = oldest_solution.published_iterations.last.created_at
^^^^^^^^^^^
```

## Stack trace

```
app/models/exercise/representation.rb:61 in first_submitted_at
app/views/tracks/community_solutions/show.html.haml:100
action_view/base.rb:263 in public_send
action_view/base.rb:263 in _run
action_view/template.rb:261 in block in ActionView::Template#render
active_support/notifications.rb:206 in block in ActiveSupport::Notifications.instrument
active_support/notifications/instrumenter.rb:58 in instrument
active_support/notifications.rb:206 in ActiveSupport::Notifications.instrument
action_view/template.rb:556 in instrument_render_template
action_view/template.rb:249 in render
```

## Tracking Details
- **Project**: exercism-rails
- **Sentry**: [ActionView::Template::Error: undefined method 'created_at' for nil (ActionView::Template::Error)](https://thalamus-ai.sentry.io/issues/95242024/)
- **Culprit**: Tracks::CommunitySolutionsController#show
- **First seen:** Feb 11, 2026

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.