4. (Display all Tags) Don't see seeds in https://localhost:8000/tags


#1

Hello.
I did all steps and all of them was accepted. But i don't see all tags by seeds in https://localhost:8000/tags
I tried to update: "rake db:seed" but console returns error: rake aborted!
Is it normal?


#2

solved... troubles in html code)


#3

I'm having the same problem, can you post your solution?


#4

This list of tags is located in localhost:8000/tags
but it was invisible (white text on white page and i forgot use <img src=""> for pictures links)

there is my index.html.erb code:

<div class="header">
  <div class="container">
    <img src="http://s3.amazonaws.com/codecademy-content/courses/learn-rails/img/logo-1tm.svg" width="80">
    <h1>BokenjiKan</h1>
  </div>
</div>

<div class="tags">
  <div class="container">
    <div class="cards row">
    
       <% @tags.each do |tag| %>
      <div class="card col-xs-4">
        <img src="<%= tag.image %>">
        <h2> <%= tag.title %> </h2>
      </div>
       <% end %>

    </div>
  </div>
</div>


#5

Great, thank you I was also wondering why the view seemed incomplete.


#6

Thanks for that, I thought I was going mad!


#7

I still get the header and nothing else


#8

Hey I am stuck at the same problem but it gives me a weird error code that I cannot find an explanation for:
undefined method `image' for #

I have the exact same code as you posted as a solution so maybe did I do something wrong in a different file, maybe the route to "index" or so?


#9

http://bfy.tw/67h0

:slight_smile:


#10

That was cool !! :dizzy:


#11

Haha I guess I have to thank you for your reply but it not like I have not looked on google before I posted here. So unfortunately this wasn't very helpful. Thank you for taking your time to put this question into a google search bar I only needed help regarding this specific exercise and this mistakes people post on stack overflow are not the ones I made I have already checked -.-


#12

That's all I could do without seeing your project. :cry:


#13

How did you learn such things? I followed the course and I didn't have any idea what to do


#14

Before starting this course "Ruby on rails", i recomend you to take a course "HTML and CSS" https://codecademy.com/learn/web

it's realy needed to understand examples in "view" part of realization projects by RoR.

P.S. sorry for my english :slight_smile:


#15

Isn't there an alternative way to display the images? Using the image_tag() method?


#16

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.