Displaying 1 result from an estimated 1 matches for "send_pending_invoices".
2006 Jul 26
4
Which is the best place to put business logic ?
Hello, I wonder if it''s better to put business logic in the controller
or in the model (I presume model is better)
Eg. client controller, disable_account action
client = Client.find(params[:id])
client.send_pending_invoices()
client.login_enabled = false
client.receive_newsletter = false
or
client = Client.find(params[:id])
client.disable_account() # and put the whole stuff in this method ?
Which is the best one ?
Thanks
--
Posted via http://www.ruby-forum.com/.