Skip to content

Instantly share code, notes, and snippets.

@jattoabdul
Created November 1, 2019 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jattoabdul/4d7e5bd11866c5c4987aceb4f1d03237 to your computer and use it in GitHub Desktop.
Save jattoabdul/4d7e5bd11866c5c4987aceb4f1d03237 to your computer and use it in GitHub Desktop.
Write the code for app/views/admins/subscriptions.html.erb to display in a particular format while using bootstrap css framework in rails views
<div class="container-fluid">
<% @subscriptions.each do |subscription| %>
<div class="row">
<div class="col-md-8 col-sm-12 col-xs-12">
<%= mail_to "subscription.email" %>
</div>
<div class="col-md-4 col-sm-12 col-xs-12">
<span><%= subscription.plan&.name %></span>
</div>
</div>
<% end %>
<%= paginate @subscriptions, outer_window: 3 %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment