The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

dev007 (5) [Avatar] Offline
In section 3.2.1 there's a discussion about checking the current logged-in user to determine if he/she can edit a guestbook entry. They show the code for the Show controller action (listing 3.1) but they only show a fragment of the markup for the view (listing 3.2). Then they show the completed page in Figure 3.1. Up until now they have showed all the HTML code for the views. I was able to participate step by step until now. Looking ahead I see that they have included the required listing in listing 3.5 but that's after more discussion and more code additions to the example. Not a deal breaker but inconsistent with the current instructional style of book. I'm wasting time rereading the section to see if I have missed anything.
Dev@hamburg (4) [Avatar] Offline
Re: Section 3.2.1 - Where's the view code?
Had the same difficulties.
ytosa (7) [Avatar] Offline
Re: Section 3.2.1 - Where's the view code?
The book is very obscure what reader should do.

You add Listing 3.1 to GuestbookController and you create Show.cshml whose code is shown in Listing 3.5 (you have to remove the section for hasPermission, since we have not build Edit Control). In order to get Figure 3.1, you use the address of Guesbook/Show/1. Note that 1 is the id passed to Show controller.