Terry Donaghe
2006-Jan-17 22:38 UTC
[Rails] Noob Question concerning code in Agile Web Development with Rails
Hi, I''m currently learning Ruby on Rails using "Agile Web Development with Rails." I am using RadRails as my development environment. Everything has been going along well, until the end of chapter 7. Just before the end of the chapter, we set up our store pages so that they can be styled with the depot.css stylesheet. This is where I run into my problem. The stylesheet only seems to work partially. The divs have been moved properly, but I can apply no other styles to the "side" div. No matter what value I use for the "background" style it remains white, neither can I draw a border around it. Styles also do not work on the "main" div. Styles seem to work fine for the "banner" div. Perhaps someone who''s been through this book has seen something similar? Or maybe it might ring a bell for someone else. I''d really appreciate any clues you can throw my way. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060117/1f76e514/attachment.html
Paul Barry
2006-Jan-17 23:17 UTC
[Rails] Noob Question concerning code in Agile Web Development with Rails
Not sure what your issue could be. Have you tried downloading the code for the book and comparing it to your code? It has to be something in the HTML or CSS, not rails. On 1/17/06, Terry Donaghe <terry.donaghe@gmail.com> wrote:> > Hi, > > I''m currently learning Ruby on Rails using "Agile Web Development with > Rails." I am using RadRails as my development environment. Everything has > been going along well, until the end of chapter 7. Just before the end of > the chapter, we set up our store pages so that they can be styled with the > depot.css stylesheet. This is where I run into my problem. The > stylesheet only seems to work partially. The divs have been moved properly, > but I can apply no other styles to the "side" div. No matter what value I > use for the "background" style it remains white, neither can I draw a border > around it. Styles also do not work on the "main" div. Styles seem to work > fine for the "banner" div. > > Perhaps someone who''s been through this book has seen something similar? > Or maybe it might ring a bell for someone else. > > I''d really appreciate any clues you can throw my way. > > Thanks! > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060117/60ac08b0/attachment-0001.html
Terry Donaghe
2006-Jan-17 23:24 UTC
[Rails] Noob Question concerning code in Agile Web Development with Rails
I''m only using the code downloaded from the book''s website. I agree that it shouldn''t have anything to do with rails. I was mainly interested in finding out if anyone else had run into a similar problem. On 1/17/06, Paul Barry <mail@paulbarry.com> wrote:> > Not sure what your issue could be. Have you tried downloading the code > for the book and comparing it to your code? It has to be something in the > HTML or CSS, not rails. > > On 1/17/06, Terry Donaghe <terry.donaghe@gmail.com> wrote: > > > Hi, > > > > I''m currently learning Ruby on Rails using "Agile Web Development with > > Rails." I am using RadRails as my development environment. Everything has > > been going along well, until the end of chapter 7. Just before the end of > > the chapter, we set up our store pages so that they can be styled with the > > depot.css stylesheet. This is where I run into my problem. The > > stylesheet only seems to work partially. The divs have been moved properly, > > but I can apply no other styles to the "side" div. No matter what value I > > use for the "background" style it remains white, neither can I draw a border > > around it. Styles also do not work on the "main" div. Styles seem to work > > fine for the "banner" div. > > > > Perhaps someone who''s been through this book has seen something > > similar? Or maybe it might ring a bell for someone else. > > > > I''d really appreciate any clues you can throw my way. > > > > Thanks! > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060117/05150e50/attachment.html
Jan Prill
2006-Jan-18 00:01 UTC
[Rails] Noob Question concerning code in Agile Web Development with Rails
Hi, Terry, could you post the rendered page source and the css the page is loading. sometimes a few more pairs of eyes will see the problem... Regards Jan Prill Terry Donaghe wrote:> Hi, > > I''m currently learning Ruby on Rails using "Agile Web Development with > Rails." I am using RadRails as my development environment. > Everything has been going along well, until the end of chapter 7. > Just before the end of the chapter, we set up our store pages so that > they can be styled with the depot.css stylesheet. This is where I run > into my problem. The stylesheet only seems to work partially. The > divs have been moved properly, but I can apply no other styles to the > "side" div. No matter what value I use for the "background" style it > remains white, neither can I draw a border around it. Styles also do > not work on the "main" div. Styles seem to work fine for the "banner" > div. > > Perhaps someone who''s been through this book has seen something > similar? Or maybe it might ring a bell for someone else. > > I''d really appreciate any clues you can throw my way. > > Thanks! > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
John McGrath
2006-Jan-18 00:02 UTC
[Rails] Noob Question concerning code in Agile Web Development withRails
i went through the book last week and was able to change those styles, including the side div color. perhaps it''s a browser issue, or a typo, like a missing quote? the errata for the book can be found here: http://books.pragprog.com/titles/rails/errata _______________________________________________ John McGrath http://fryolator.com <http://fryolator.com/> -----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Terry Donaghe Sent: Tuesday, January 17, 2006 2:39 PM To: rails@lists.rubyonrails.org Subject: [Rails] Noob Question concerning code in Agile Web Development withRails Hi, I''m currently learning Ruby on Rails using "Agile Web Development with Rails." I am using RadRails as my development environment. Everything has been going along well, until the end of chapter 7. Just before the end of the chapter, we set up our store pages so that they can be styled with the depot.css stylesheet. This is where I run into my problem. The stylesheet only seems to work partially. The divs have been moved properly, but I can apply no other styles to the "side" div. No matter what value I use for the "background" style it remains white, neither can I draw a border around it. Styles also do not work on the "main" div. Styles seem to work fine for the "banner" div. Perhaps someone who''s been through this book has seen something similar? Or maybe it might ring a bell for someone else. I''d really appreciate any clues you can throw my way. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060118/133f5b89/attachment.html
Terry Donaghe
2006-Jan-18 00:06 UTC
[Rails] Noob Question concerning code in Agile Web Development withRails
Hi all, Thanks for the help. I must have had a typo in my .rhtml code. I copied over the .rhtml code from the downloaded code and things are working now. Not only am I learning Ruby on Rails, I''m also trying to cram all this html and css in too. My brain hurts! On 1/17/06, John McGrath <jmcgrath@whoi.edu> wrote:> > i went through the book last week and was able to change those styles, > including the side div color. perhaps it''s a browser issue, or a typo, > like a missing quote? > > the errata for the book can be found here: > http://books.pragprog.com/titles/rails/errata > > > _______________________________________________ > > John McGrath > http://fryolator.com > > > -----Original Message----- > *From:* rails-bounces@lists.rubyonrails.org [mailto: > rails-bounces@lists.rubyonrails.org] *On Behalf Of *Terry Donaghe > *Sent:* Tuesday, January 17, 2006 2:39 PM > *To:* rails@lists.rubyonrails.org > *Subject:* [Rails] Noob Question concerning code in Agile Web Development > withRails > > Hi, > > I''m currently learning Ruby on Rails using "Agile Web Development with > Rails." I am using RadRails as my development environment. Everything has > been going along well, until the end of chapter 7. Just before the end of > the chapter, we set up our store pages so that they can be styled with the > depot.css stylesheet. This is where I run into my problem. The > stylesheet only seems to work partially. The divs have been moved properly, > but I can apply no other styles to the "side" div. No matter what value I > use for the "background" style it remains white, neither can I draw a border > around it. Styles also do not work on the "main" div. Styles seem to work > fine for the "banner" div. > > Perhaps someone who''s been through this book has seen something similar? > Or maybe it might ring a bell for someone else. > > I''d really appreciate any clues you can throw my way. > > Thanks! > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060118/b1f32c9b/attachment-0001.html