Created
November 1, 2019 01:49
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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