Displaying 1 result from an estimated 1 matches for "debit_card".
2006 Feb 07
3
model and controller organization
...into logical directories ... like I
used to do in Java (using the package declaration). I am interesting
in learning how RoR handles this seemingly common situation and also
what are best practices using Ruby in general.
Using ./script/generate model stuff/DebitCard
creates: app/models/stuff/debit_card.rb (sweet!)
However, using the generate script yields confusing results:
./script/generate scaffold stuff/Card admin/Banking debit credit
creates: app/models/card.rb and app/controllers/admin/
banking_controller.rb (the controller is in a sub dir called admin,
but Card is not in stuff)
Further...