-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am working through the depot application, and have hit a problem. I created the store.rhtml and admin.rhtml layouts in /app/views/layouts, but the application seems to be ignoring them. The pages remain unchanged. Have I done something wrong, or is there an error in the book? Thank you. - -- Jim McMaster mailto:jim.mcmaster-Wuw85uim5zDR7s880joybQ@public.gmane.org -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQqjFYGaP5l7/atSJEQLEkwCg1m6UBvd9l7qAcc5ZtfeyULves7sAoKi5 wPjIkRghox1DYiOeffWU76XH =OxOZ -----END PGP SIGNATURE-----
On Jun 9, 2005, at 5:40 PM, Jim McMaster wrote:> I am working through the depot application, and have hit a problem. > I created the store.rhtml and admin.rhtml layouts in > /app/views/layouts, but the application seems to be ignoring them. > The pages remain unchanged. > > Have I done something wrong, or is there an error in the book?I believe all the code in the book works as advertised: 90% of the code in those chapters is extracted from the actual Rail application''s files (I keep 20 generations of that particular application in the book''s source repository). However, it is also possible that I''ve introduced code from the wrong file. If you could tell me where you are in terms of page or sections, I can check again that the code aligns with the book. This weekend I''m going to work on getting some version of the code posted. However, that''s a non-trivial job: dave[Book/code 23:24:26] find . -type f | wc -l 13178 Cheers Dave
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, June 09, 2005 10:25 PM, Dave Thomas wrote:> On Jun 9, 2005, at 5:40 PM, Jim McMaster wrote: > >> I am working through the depot application, and have hit a >> problem. I created the store.rhtml and admin.rhtml layouts in >> /app/views/layouts, but the application seems to be ignoring them. >> The pages remain unchanged. >> >> Have I done something wrong, or is there an error in the book? > > However, it is also possible that I''ve introduced > code from the wrong file. If you could tell me where you are in > terms of page or sections, I can check again that the code aligns > with the book. >Hi, Dave... I am in the Beta2 book on page 69, at Iteration B2: Add Page Decorations. I have the books on the store index. I copy/pasted the code from file 26 on page 70 into app/views/layouts/store.rhtml. When I look at the store''s index page, I do not see any of the html from the layout. There is no change from before I created store.rhtml. I was wondering if the location or filename is wrong, either because I did something dumb (most likely) or because there is a typo in the book''s text. Thank you. - -- Jim McMaster mailto:jim.mcmaster-Wuw85uim5zDR7s880joybQ@public.gmane.org -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQqm4GmaP5l7/atSJEQIFawCguWbM1WlE/JDnZaokPYZbHuJb4BIAoPNI AkOcYcfOiGxGQGXRG5QQ5ZDK =4ttm -----END PGP SIGNATURE-----
On 6/10/05, Jim McMaster <jim.mcmaster-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thursday, June 09, 2005 10:25 PM, Dave Thomas wrote: > > > On Jun 9, 2005, at 5:40 PM, Jim McMaster wrote: > > > >> I am working through the depot application, and have hit a > >> problem. I created the store.rhtml and admin.rhtml layouts in > >> /app/views/layouts, but the application seems to be ignoring them. > >> The pages remain unchanged. > >> > >> Have I done something wrong, or is there an error in the book? > > > > However, it is also possible that I''ve introduced > > code from the wrong file. If you could tell me where you are in > > terms of page or sections, I can check again that the code aligns > > with the book. > > > > Hi, Dave... > > I am in the Beta2 book on page 69, at Iteration B2: Add Page > Decorations. I have the books on the store index. I copy/pasted the > code from file 26 on page 70 into app/views/layouts/store.rhtml. > When I look at the store''s index page, I do not see any of the html > from the layout. There is no change from before I created > store.rhtml. I was wondering if the location or filename is wrong, > either because I did something dumb (most likely) or because there is > a typo in the book''s text. > > Thank you.Does the Store''s controller specify the store layout? (i.e. you''d want layout "store" in the controller, I think.)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, June 10, 2005 9:56 AM, rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <> wrote:> On Thursday, June 09, 2005 10:25 PM, Dave Thomas wrote: > >> On Jun 9, 2005, at 5:40 PM, Jim McMaster wrote: >> >>> I am working through the depot application, and have hit a >>> problem. I created the store.rhtml and admin.rhtml layouts in >>> /app/views/layouts, but the application seems to be ignoring >>> them. The pages remain unchanged. >>> >>> Have I done something wrong, or is there an error in the book? >> >> However, it is also possible that I''ve introduced >> code from the wrong file. If you could tell me where you are in >> terms of page or sections, I can check again that the code aligns >> with the book. >> > > Hi, Dave... > > I am in the Beta2 book on page 69, at Iteration B2: Add Page > Decorations. I have the books on the store index. I copy/pasted > the code from file 26 on page 70 into > app/views/layouts/store.rhtml. > When I look at the store''s index page, I do not see any of the html > from the layout. There is no change from before I created > store.rhtml. I was wondering if the location or filename is wrong, > either because I did something dumb (most likely) or because there > is a typo in the book''s text. > > Thank you.Think of Emily Littella here...never mind. I replied as soon as I got in this morning. Then I fired up the server again, and everything is in place. I made no changes. Do I have to restart the server to pick up these changes? - -- Jim McMaster mailto:jim.mcmaster-Wuw85uim5zDR7s880joybQ@public.gmane.org -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQqm9yGaP5l7/atSJEQJFUQCfUv2J282rkDh45cZpEVMLa1XU+GcAn0Kn VrjM43C4zzeQDRlvx9Ta7OAN =FFAi -----END PGP SIGNATURE-----