R
Ramza Brown
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.newspiritcompany.com
http://www.newspiritcompany.com/newforums
also checkout alpha version of botverse:
http://www.newspiritcompany.com:8086/
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.newspiritcompany.com
http://www.newspiritcompany.com/newforums
also checkout alpha version of botverse:
http://www.newspiritcompany.com:8086/