条件付きで text_field クラスを与えたいです。レールでそれを行う方法はありますか?
いえ
<%= text_field 'person', 'employer', :tabindex => 5,:style => 'width: 50%;', :class => 'required' %>
特定の条件が発生した場合にのみ、クラスを「必須」にする必要があります。
条件付きで text_field クラスを与えたいです。レールでそれを行う方法はありますか?
いえ
<%= text_field 'person', 'employer', :tabindex => 5,:style => 'width: 50%;', :class => 'required' %>
特定の条件が発生した場合にのみ、クラスを「必須」にする必要があります。