Skip to content

Support :append for the select helper #147

@vzelenko

Description

@vzelenko

Is there an easy way to append label to form select helper? The following does not seem to work...

<%
    options = [['first', 1]]
    (2..30).each {|day| options << [day.to_s, day]}
    options << ['last', 31]
%>
<%= f.select :due_day, options, append: 'day', label: 'Due Day' %>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions