You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 6 sets the value for the reference field, which is not part of the input form >because it is not in the list of fields specified above.
Line 7 creates an insert form SQLFORM for the db.post table using only the specified >fields.
At first there is an issue with the numbering of code lines.
Second, the phrases 'fields specified above' and 'only the specified fields' I think must be left overs from previous obsolete versions. I guess these lines should be re-written.
The text was updated successfully, but these errors were encountered:
The issue can be closed, as the current text is
Line 6 defines a format string for the table. It determines how a record should be represented as a string. Notice that the format argument can also be a function that takes a record and returns a string.
and text about line 7 was removed. Instead it has:
Lines 8-12 define another table called "post". A post has an "author", an "email" (we intend to store the email address of the author of the post), a "body" of type "text" (we intend to use it to store the actual comment posted by the author), and an "image_id" field of type reference that points to db.image via the "id" field.
At Chapter 3:
The text was updated successfully, but these errors were encountered: