Add: image database table, image test site, image upload support
This commit is contained in:
parent
73d63f92e4
commit
982b72494c
13 changed files with 207 additions and 1 deletions
6
app/views/test/images/_image.html.erb
Normal file
6
app/views/test/images/_image.html.erb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<div class="image-entry">
|
||||
<h3><%= image.title %></h3>
|
||||
<% if image.file.attached? %>
|
||||
<%= image_tag image.file, width: 300 %>
|
||||
<% end %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue