method

token_list

rails latest stable - Class: ActionView

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

token_list(*args)
public

Returns a string of tokens built from args.

Examples

token_list("foo", "bar")
 # => "foo bar"
token_list("foo", "foo bar")
 # => "foo bar"
token_list({ foo: true, bar: false })
 # => "foo"
token_list(nil, false, 123, "", "foo", { bar: true })
 # => "123 foo bar"