I am using rails just for few days
Now i am developing traffic reports for my local network
I had to build database queries manualy becouse ActiveRecord does not
support selection of multiple sum() fields in silgle query
Then i wrote special class QueryBuilder which makes query string from
the given conditions (group by, where, additinal fields to select etc).
I put QueryBuilder just after my controller file in the same file
And now in some cases i have troubles it’s public methods. Class itself
is visible, it is passible to create objects of this class, but methods
are not accessible after changes in routes.rb
Can anyone explain or point me to the related manual how to use own
classes which are not a model and not a controller.
I cannot extend my model becouse i should have few instances of my class