diff --git a/app/views/listings/index.html.erb b/app/views/listings/index.html.erb index 04ea356..88a7b76 100644 --- a/app/views/listings/index.html.erb +++ b/app/views/listings/index.html.erb @@ -11,20 +11,16 @@ <% @listings.each do |listing| %> - <%= cl_image_tag listing.photo %> - <%= cl_image_tag listing.photo2 %> - <%= cl_image_tag listing.photo.inspect %> - - - + + + diff --git a/db/seeds.rb b/db/seeds.rb index 68bed98..af59218 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,5 +1,5 @@ -User.create!(email: "najomar68@gmail.com",password: "123456") +User.create!(email: "najomar68@gmail.com",password: "123456", user_id: 1, role: "admin") User.create!(email: "kevin@gmail.com", password: "123456") User.create!(email: "takuya@gmail.com", password: "123456")