[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Business logic for a rails/ruby application

Berlin Brown

5/9/2006 5:28:00 PM

Ideally, this is a rails question. My question; where do you normally
put your business logic in a rails application. I have seen a lot
people place the code mostly in their controller. But, lets I want to
put code in the 'lib' directory. Is that a normaly place. Also, can
you launch threads within the rails container for example with lighttpd
or webbrick.

This is what I have been doing:

lib/the_lib.rb

module TheLib
end

require_dependency 'the_lib'

app/controller
SomeController < ApplicationController
include TheLib
end

??

--
Berlin Brown
(ramaza3 on freenode)
http://www.newspiritc...
http://www.newspiritc.../newforums
also checkout alpha version of botverse:
http://www.newspiritc...:8086/