17 Jun 2013, 20:38
Generic-user-small

monty head (4 posts)

Got everything done like in the book, but can’t see any result on the localhost:3000/products I see the list, but no changing loros like in the book ;( i think that css doesn’t laoding

what can i do?

18 Jun 2013, 14:40
Samr_small_pragsmall

Sam Ruby (584 posts)

Bring up the page and then use the browser action to view source. Do you see lines containing <tr class=”list_line_even”> and <tr class=”list_line_odd”>?

19 Jun 2013, 07:54
Generic-user-small

monty head (4 posts)

http://img833.imageshack.us/img833/1747/p4w.png

19 Jun 2013, 13:15
Samr_small_pragsmall

Sam Ruby (584 posts)

Thanks for the picture! It does look like your stylesheets are not loading. Can you expand the “head” section and click on link to the products.css stylesheet and see if there are any errors?

Also, can you tell me what version of Rails you are using and what printing of the book? The printing can be found at the bottom of the page before the Contents page.

19 Jun 2013, 13:48
Generic-user-small

monty head (4 posts)

ok my system is ubuntu 13.04 ruby 2.0.0 rails 3.2.13

i’m using P82 Agile Web Dev with rails 4th edition for ruby 1.9.2 and rails 3.1.0, and also tried on this line up, but it doesn’t make sense

http://img833.imageshack.us/img833/3452/z6zo.png

http://img560.imageshack.us/img560/3446/d8hp.png

19 Jun 2013, 14:25
Samr_small_pragsmall

Sam Ruby (584 posts)

I don’t recognize P82, but as long as it is August 2012 or later, you are fine. Otherwise, please see how to downgrade rails.

As to the immediate problem, your css/scss is working just fine, but the css rules produced aren’t matching. For example, “.products .list_line_odd” requires both class names to be present.

You do have class=”list_line_odd”, but not class=”products” in your page. Check app/views/layouts/application.html.erb for the change to the body tag that is described in section A2.

19 Jun 2013, 15:47
Generic-user-small

monty head (4 posts)

thanks, master ;)

  You must be logged in to comment