Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Simple Ruby on Rails Application Creating an Authentication System Generating the User Model

Jack Hou
Jack Hou
6,975 Points

where is the HTML markup located?

How did Jim change the appearance of the site? Which CSS file is it? I want to learn how I can change my own site appearance in the future

3 Answers

Naomi Freeman
STAFF
Naomi Freeman
Treehouse Guest Teacher

Mmmm I wish I could screencap you.

So my app is called "housing". So the main directory is "housing" Imagine each dot is an arrow.

housing

  • app

    • assets
    • stylesheets
      • application.css is where CSS for your whole entire site goes

and then separately

housing

  • app

    • assets
    • controllers
    • helpers
    • mailers
    • models
    • views
      • layouts
      • application.html.erb is where you can implement HTML for the whole site

So application.html.erb is where I have all the HTML markup for the nav bar on my site and application.css is where I define the colour of my navbar font

You can put html and css in random places elsewhere, but it's best to follow the Rails conventions :)

Hope that helps. Let me know if you have any more questions.

Jack Hou
Jack Hou
6,975 Points

Thanks! I just realized I completely skipped over the front-end introduction haha