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

Display:none not working

Hi,

I am following the Build A Simple Ruby On Rails track, on stage 2 front end development and on the lesson about adding interactivity.

In the video he creates a CSS rule to display:none but for some reason it doesn't work as the elements still display on the page. I am using a more recent version of Ruby then the tutorials but the same bootstrap css.

Any help would be great thanks.

2 Answers

can you please post the markup and style

I've actually experienced this, its a bug, something to do with the page your looking at not being the right page, as the right page is the Statuses#index page but the page your looking at is loaded from the home page. I know my wording sucks, sorry.

I fixed it by playing around with the code, eventually it worked.