valibuk.net

A place for opinions and notes of a valibuk.

Wordpress 2.1 And Blogroll

Tagged with: — ondrej at 11:55 pm on Sunday, February 4, 2007

Today I upgraded to a newer version of Wordpress 2.1. And my theme, based on the Dixie Belle theme, showed an error in the sidebar:

  1. WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
  2. SELECT cat_id, cat_name FROM

(There is more where this came from … )

How To Handle Model In Module?

Tagged with: — ondrej at 10:53 pm on Sunday, February 4, 2007

Ruby on RailsThe number of models in your Ruby on Rails application is growing and one day you will get a brilliant idea.. Let’s put them to modules (that is to different subdirectories in the modules directory). Well, I had this day some weeks ago and, honestly, it is not a good idea… Helpers and tools in RoR, that work without any problems and manual changes when models do not use modules, will require some manual changes to work.

(There is more where this came from … )

One Model With acts_as_list and acts_as_tree

Tagged with: — ondrej at 8:49 pm on Sunday, February 4, 2007

Ruby on Rails Ruby on Rails provides nice ways to create a list (acts_as_list), that is to keep order of items, and to create a tree (acts_as_tree), that is to organise items with parent–children relationships. But what to do, if you need both functionalities at once?

My model has name Outline and it holds one textual information.

(There is more where this came from … )