Member's Index
<% @members_mains.each do |members_main| %> <% end %>
First Name Last Name Email Phone
<%= members_main.mfirstname %> <%= members_main.mlastname %> <%= members_main.memail %> <%= members_main.mphone %>
<%= link_to 'Profile', members_main, class: "btn btn-primary" %> <%= link_to 'Edit', edit_members_main_path(members_main), class: "btn btn-primary" %> <%= link_to 'Delete', members_main, method: :delete, data: { confirm: 'Are you sure? Removing a member will delete all records including all listing information from the directory.' }, class: "btn btn-danger" %>
<%= link_to 'Private Address', members_main_contacts_path(members_main), class: "btn btn-warning" %> <%= link_to 'Public Listings', members_main_listings_path(members_main), class: "btn btn-primary" %>
<%= link_to 'Add a New Member', new_members_main_path, class: "btn btn-primary" %>