I want an url like this, that is, with a query string key without equal sign:
/users/1?welcome
How to obtain this using url_for
? I achieved this at the moment:
Rails.application.routes.url_helpers.url_for controller: 'users',
action: 'show',
id: 1,
only_path: true,
welcome: ''
Which produces this:
/users/1?welcome=