"Add four list items" ...but how?


#1

I'm not expert in HTML or Rails.

In this exercise, Step 8.1 instructs us to:
"In app/views/pages/home.html.erb in the header, add four list items for About, Work, Team and Contact."

But having never been shown how to add list items in Rails, how are we meant to do this?

I've completed both the Ruby and Command Prohmpt courses and found them to provide much better guidance and support compared to this course. It assumes way too much.

Any help would be greatly appreciated!


#2

I agree that the Ruby on Rails course is severely lacking guidance and support.

At the beginning of the course I believe it says you should know some html.

In html, to create a list we use

<ul> </ul>

And

<li> </li>

For Unordered List, and List Item, respectively.
So in app/views/pages/home.html.erb under the "header" section, in its "container", it should look like:

<ul>
     <li>About</li>
     <li>Work</li>
     <li>Team</li>
     <li>Contact</li>
</ul>

Then you'll have to do some css magic to make it display on the same line. Which should look something like:

.header li {
     display: inline;
}

(I know the lesson uses sass or scss but I'm not familiar with that so I stuck with regular old css.)

Hope this helps!
I'm stuck on step 9 right after this, so hopefully I can figure that out now!


#3

Hey tynicolas,

Thanks a lot for the help.

I actually decided to try RailsTutorial.org instead which is really great (sorry, I don't mean to advertise here). I'm on Chapter 5 already and it's insanely thorough.

I'll come back and complete the Codecademy Rails tutorial afterwards.

Cheers


#5

This topic is solved.