small medium large xlarge

Generic-user-small
07 Sep 2009, 16:15
Robert Audi (3 posts)

Hi everybody, the answer to my question might be very obvious but right now it’s a bit blurry for me:

Normally we create a Controller, a Model and a View folder that all have the same name (or a pluralized name, or a name that is somehow related). But when we create the find_cart method in the store controller, how does the store controller knows where the definition of the Cart class is? Is that also a Rails feature? If it is, that would mean that I can create any class in the models folder and directly using instances of that class in the whole app, right?

You must be logged in to comment