n00b warning.. I''m on page 122 (pdf page 132) of the Rails book. When I load the URL http://localhost:3000/login/add_user I do not get the layout shown in the image. I looked backed several pages to make sure I didn''t miss anything. Also checked out the errata page.. no help. I realize I can copy or symlink the app/views/layouts/admin.rhtml to login.rhtml but how would I make the login action pickup the app/views/layouts/admin.rhtml layout otherwise? Did I actually miss a step or is this an error in the book? Thanks, -- Greg Donald Zend Certified Engineer http://destiney.com/
Greg Donald wrote:> n00b warning.. > > I''m on page 122 (pdf page 132) of the Rails book. When I load the URL > http://localhost:3000/login/add_user I do not get the layout shown in > the image. I looked backed several pages to make sure I didn''t miss > anything. Also checked out the errata page.. no help. > > I realize I can copy or symlink the app/views/layouts/admin.rhtml to > login.rhtml but how would I make the login action pickup the > app/views/layouts/admin.rhtml layout otherwise? Did I actually miss a > step or is this an error in the book? >Your login_controller.rb should contain this line: layout "admin" This was in the code I copied from the PDF - beta 2 version - and the http://localhost:3000/login/add_user page looks good to me. regards Justin