There are some bugs within the code with this commit. The translation
from Japanese to English is making it hard to follow along in some
places. With that said, this repo. if for learning and becoming
familiar with Caveman2, Common Lisp and the other things it comes with.
This mostly sets up the basic CRUD operations you normally find on a
website. There is some code for CSRF, also.
There is one major bit of malfunctioning coding though. It is the
'setf' bit of code. I have tried to rearrange the code to see if I can
get it to work but I simply cannot work it out.
I have decided to leave the code as it is described in the
tutorial (for Chapter 6) and hope there is some incite in future
chapters to help me fix the problem.
This is an extention of Chapter 4. In Chapter 4, the aim was to set-up
a database and successfully connect to it. This chapter was more about
querying the database and displaying the results in the '.html'
templates.
I do not know why, but I was having a lot of trouble with naming
conflicts for hours. I could not work it out and in the end I do not
what I changed which caused the code to start working. One of the
tactics I used was replace ':' with '#:' in the 'defpackages' and
'.asd' file. Like I said, I do not know if this change caused the code
to start working. But, if you are wondering why the sudden change in
the code base, that is why.
I did not notice I added a comment at the end of the ':depends' on
section which cause the closing parenthesis to become part of the
comment. When I have tried to load the system (using ASDF), it was
throwing errors because of this. I though I fix it in the previous
commit but I just created a mess so good it fixed the problem -- at a
basic functioning level. I do not know how the system was loading with
the .asd in its previous state but it did. Anyway, here we
are. '(asdf:load-system :rails-to-caveman)' should run on repeat
now and not produce any errors...
Mito is a new package introduced in Chapter 4. Clack-Errors was first
added in Chapter 1 but I, some how, managed to remove it. I am
re-adding here and committing it so I have a log of me adding it --
and remove doubt on me accidentally thinking I added. Which, to be
honest, is something I cannot rule out.