I am trying to display an image that is in my public/image folder and I
don’t know how to.
What I want to do is to be able to assign a photo to an artist so you
can navigate through different artist’s photo.
This is my image model
class Image < ActiveRecord::Base
has_many :publishings
has_many :artists, :through => :publishings
has_many :comments,:through => :friends
has_many :comments, :as => :resource, :class_name => “Commentable”
end
This is my image show.html
<%= notice %>
Title: <%= @image.title %>
Filename: <%= @image.filename %>
Likes: <%= @image.likes %>
<%= link_to ‘Edit’, edit_image_path(@image) %> |
<%= link_to ‘Back’, images_path %>
Thanks in advance