search for: ohoefbwhl6eb1svskn2v4q

Displaying 4 results from an estimated 4 matches for "ohoefbwhl6eb1svskn2v4q".

2005 Mar 06
12
Where to place custom classes?
Hi all, I am writing a simple shopping cart which will consist of a single class. There will be no DB table for carts so I do not want to make my Cart a model. But where do I place my Cart class so that I can access it in my controllers? I want to be able do do things like this (for instance in a shop controller): def add_to_cart @session[''cart''].add(article_id, amount)
2005 Mar 06
4
has_many and order
Hi all, if I have a has_many and belongs_to relations like this category has many articles article belongs to category is there a way I can specify the order of articles when pulling them up with @some_category.articles ? Many thanks in advance! -- Nicky
2005 Dec 18
0
Extending AR::B to provide translations
Hi all, I want to extend AR::B is such a way as to be able to support and display different language versions of objects. I know of and have tried Globalize but still want to do this on my own for a multitude of reasons (the educational value probably being most important). My table for the objects has columns named like en_name, de_name, fr_name, en_description, de_description,
2005 Dec 26
3
Override Validation?
Hi all, is there a way to override the validation methods so as to avoid the div.fieldWithErrors divs from being created on the redisplayed form? Many thanks in advance, Nicky