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/
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Business logic for a rails/ruby application
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password