It looks like these aren't even defined in the source, which makes me wonder why it's on their wiki page. I did find from another answer that there is the package called express-helpers
, which when configured, allows access to all of the view helpers.
npm install express-helpers
In your app.js, configure it:
require('express-helpers')(app);
Finally, your view will be slightly different:
<%
var choices = [
{value: 1,text: 'First Choice'},
{value: 2,text: 'Second Choice'},
{value: 3,text: 'Third Choice'}
]
%>
<%- select_tag('mySelectElement', choices, { value: 2 }) %>
The select_tag has the following parameters:
name
choices
html_options
id
name
value (selected value)