The last Paginate
18 Aug 2006
Over the past couple of days, I finally got around to putting a few updates in place to the pagination code I wrote a while ago. Especially in light of Nate's recent post I think I'll call it a day at that ;)
I've updated the Pagination package to be tidier and easier to edit, and adding the possibility to paginate ajax form results as well as including simple select...
Sessions and Plugins
18 Aug 2006
If you use plugins, you may have noticed that your app session data isn't avaialbe in your plugins and vice-versa. There's a good reason for that, as a plugin is intended to be a mini application, self contained etc.
In my case, this was a problem as my plugins are extensions or parts of my application and not seperate. To get around the wandering session data it was...
International Number formats
19 Jul 2006
Perhaps this will be useful for others.
I needed to be able to convert decimal number to and from the 'local' format. By adding the below methods to my app_model, it is possible to silently convert decimal numbers as they come out of the database to be local format, and vice versa to save. In the code below it is converting numbers of the format 999.999,99 to be...
Even More Pagination
16 Jul 2006
I've enhanced the pagination code and added more improments. Mainly in terms of use, as it is now virtually identical to use as either get, pretty, or named style.
This one is probably the most interesting example:
The source code is (for all examples) is available at the top of the page.
Time for sushi :)
Authentication
09 May 2006
Rant Alert
There have been a number of debates in the Google group about Authentication and how it can be done. There is a vast amount of confusion (IMHO).
So what is Authentication?
I searched the internet and found a defenition which should be of use:
Authentication is any process by which you verify that someone is who they claim they are. ...
i18n Again
01 May 2006
I've updated the Locale Package again, only some minor changes superficially, but with a significant performance improvement and adding a check for true static pages (those handled by the pages controller).
The todo list for the locale package is quite short:
- Add gettext support
- Add DB option
- Provide means of chosing which method of storage/retrieval...
Tutorials
01 Apr 2006
A brief note: I've been quite busy lately, but I hope to put in place a few bug fixes this weekend.
One of these fixes is to correct my contact form which, I now realise, isn't saving the text entered in the "From" box (technically the email is from me to me, but of course I want to know who presses the button). For those who contacted me recently with suggestions or...
Has and belongs to Manything
22 Mar 2006
I thought I would test out a HABTM relationship
by adding categories to my blogs. At the moment this seems to work as Has and belongs to Many+, as categories are displayed as
being associated with all posts even if they don't actually have a link. I assume this is a simple error on my part which I
will correct shortly.