marcoroth/turbo_power

`redirect_to` Action: rename `action` attribute to `action_name`

Closed this issue · 2 comments

The redirect_to action has an action attribute which is being passed to Turbo.visit(..., { action }) to control the Turbo visit behaviour.

But the action attribute name is clashing with the <turbo-stream> element, since it's using the action attribute for determining the stream action to execute.

We should rename the attribute for the redirect_to action to either action_name or turbo_action.

turbo_action sounds better IMO

Yeah, I would be fine with turbo_action. This makes it more explicit!