Skip to content

Remove .required class from label? #205

@Stajor

Description

@Stajor

How can I remove .required class from label?
I want the presence validation in my main form, but i need to remove .required from search form

<%= f.select :status, Campaign.statuses.collect{|status, i| [t(status), i] }, {include_blank: 'All', label_class: 'control-label'}, {name: :status, wrapper_class: 'col-md-6'} %>

Still render with . required

<label class="control-label control-label required" for="campaign_status">Status</label>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions