Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

33. An Image Blog #129

Open
kmouts opened this issue Nov 8, 2013 · 1 comment
Open

33. An Image Blog #129

kmouts opened this issue Nov 8, 2013 · 1 comment

Comments

@kmouts
Copy link

kmouts commented Nov 8, 2013

At Chapter 3:

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.

@alexandremasbr
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants