Hi everyone. I’ve completed most of Blogz, but I am having trouble with the Create Dynamic User Pages sections. Some of my trouble is with the wording of the instructions, but most of it is my lack of understanding about queries and how to pass parameters properly. I appreciate any advice on how to approach this section.
Here are some of my questions and concerns about this task:
In the instructions, it says that we will need to use a GET request on the /blog path with ?user=userID as the query parameter. Query parameters still seem vague to me. Is it similar to how the index handler works in the Get It Done project? I’m lost on how to create one and how to pass parameters through queries (especially when the /blog path has to handle more than one GET request; my attempts negatively affected the other GET request.
When it comes the templates for the singleUser and index, would we be using dot notation that combines both tables or could dot notation be handled by the associated variables (maybe owner?) in one of the classes?
I don’t understand what the instructions mean by amending the /blog route handler to render the correct template because it made it seem like the queries have to be in that handler instead of one query being in the index and the other being in the blog. I don’t even know if I’m saying this correctly.
I tried to do pseudocode for all of this, but it’s all still not making sense to me.