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

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?

1 Like

solved… troubles in html code)

1 Like

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

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">

<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>
       <% end %>



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

1 Like

Thanks for that, I thought I was going mad!

1 Like

I still get the header and nothing else

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 #Tag:0x0000000530b768

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?

1 Like


1 Like

That was cool !! :dizzy:

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 -.-

1 Like

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

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

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:

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

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