Teams / Accounts
Can I change this
<% if @accounts.exists? %>
<div>
<%= link_to 'Create a Account', new_account_path, class: "btn btn-primary" %>
</div>
<% end %>to
<% if @accounts.exists? %>
<% if @accounts.count <= 1 %>
<div>
<%= link_to 'Create a Account', new_account_path, class: "btn btn-primary" %>
</div>
<% end %>
<% end %>To limit account to 1 personal or 1 team type account?
Thanks!
Notifications
You’re not receiving notifications from this thread.