comfy / comfy/active_link_to

Support nested params

Open
#56 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
853
Forks
84
PR merge metrics
No merged PRs in 30d

Description

Add support nested params. For example:

```
/events?filter%5Bname%5D=sent+message

<%= active_link_to(_('Sent message'),
events_url(filter: { name: 'sent message' }),
class_active: 'current',
active: { filter: { name: 'sent message' } },
wrap_tag: :li ) %>
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the active_link_to helper and any existing tests for active link matching. Reproduce the nested filter URL from the example and trace how the active option is compared. Done means nested params such as filter[name] correctly mark the link as active, with coverage for the shown case.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.