Displaying 1 result from an estimated 1 matches for "knobelsp".
Did you mean:
knobel
2010 Feb 20
2
Extending Rails
Hi,
I am not sure how to extend Rails. I want to write a class where I can
Access my Models, like "User.all".
I tried to add a class in the lib/ folder but then ruby complains that
e.g. "User.all" with "NameError: uninitialized constant "
Is there a way to inherit my Rails functionality in a ruby class in
the /lib folder? Or am I going in the conplete wrong