Displaying 1 result from an estimated 1 matches for "banking_control".
2006 Feb 07
3
model and controller organization
...ing 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, in the case of the former example, I see that the class
declaration is prefixed with Stuff:: but no module by this name is
created, so on first run the application pitches a NameError.
So, in general wha...