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

Yohan Dantan
Yohan Dantan
2,370 Points

Can't add DIV or change css in rails app?

Hey guys - so in this I'm trying to customise the design of the app. So I'm trying to add divs to the index.html to create the layout I want but it does nothing even when I add style to the div like

<div style=" border:3px; border-color: #000000;">

What am I doing wrong? How do I customise the design of a rails app like this?

I'm used to HTML/CSS coding so that's my reference.

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

You just have to make sure that you're adding the code to the right view or layout that is being shown at that url. But otherwise, Rails uses html in it's views.